diff --git a/Changes b/Changes index 4be0ac478..6b0fdf51c 100644 --- a/Changes +++ b/Changes @@ -11,6 +11,8 @@ indicates the contributor was also the author of the fix; Thanks! *** Name SYMRSVDWORD error, and allow disabling it, bug103. [Gary Thomas] +**** Fix escaped preprocessor identifiers, bug106. [Nimrod Gileadi] + * Verilator 3.712 2009/07/14 ** Patching SystemC is no longer required to trace sc_bvs. diff --git a/src/V3PreLex.l b/src/V3PreLex.l index ebf4a02b7..026e32f0f 100644 --- a/src/V3PreLex.l +++ b/src/V3PreLex.l @@ -69,7 +69,7 @@ wsn [ \t\f] crnl [\r]*[\n] quote [\"] backslash [\\] -symb [a-zA-Z_][a-zA-Z0-9_$]* +symb ([a-zA-Z_][a-zA-Z0-9_$]*|\\[^ \t\f\r\n]+) drop [\032] psl [p]sl