diff --git a/Changes b/Changes index 1156d9d9b..40e5d200d 100644 --- a/Changes +++ b/Changes @@ -31,7 +31,9 @@ The contributors that suggested a given feature are shown in []. Thanks! **** Fix first clock edge and --x-initial-edge, bug1327. [Rupert Swarbrick] -**** Fix compile error on tracing of string arrays, bug1338. [Iztok Jeras]. +**** Fix compile error on tracing of string arrays, bug1338. [Iztok Jeras] + +**** Fix number parsing with newline after radix, bug1340. [George Cuan] * Verilator 3.926 2018-08-22 diff --git a/src/verilog.l b/src/verilog.l index 0d0ac40b3..ce8373fb8 100644 --- a/src/verilog.l +++ b/src/verilog.l @@ -171,7 +171,7 @@ word [a-zA-Z0-9_]+ /* verilog numbers, constructed to not match the ' that begins a '( or '{ */ vnum1 [0-9]*?['']s?[bcodhBCODH][ \t\n]*[A-Fa-f0-9xXzZ_?]* vnum2 [0-9]*?['']s?[01xXzZ] -vnum3 [0-9][_0-9]*[ \t\n]*['']s?[bcodhBCODH]?[ \t]*[A-Fa-f0-9xXzZ_?]+ +vnum3 [0-9][_0-9]*[ \t\n]*['']s?[bcodhBCODH]?[ \t\n]*[A-Fa-f0-9xXzZ_?]+ vnum4 [0-9][_0-9]*[ \t\n]*['']s?[bcodhBCODH] vnum5 [0-9][_0-9]*[ \t\n]*['']s vnum {vnum1}|{vnum2}|{vnum3}|{vnum4}|{vnum5}