add double quote escapes from pragma comments.
This commit is contained in:
parent
77f7609b67
commit
873c2fecd4
|
|
@ -268,6 +268,7 @@ keywords (line|include|define|undef|ifdef|ifndef|else|elsif|endif)
|
|||
<PCOMENT>`[a-zA-Z][a-zA-Z0-9_$]* {
|
||||
if (macro_needs_args(yytext+1)) yy_push_state(MA_START); else do_expand(0);
|
||||
}
|
||||
<PCOMENT>`\" { fputc('\"', yyout); }
|
||||
|
||||
/* Strings do not contain preprocessor directives or macro expansions.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -74,6 +74,10 @@ endfunction
|
|||
|
||||
(* attr = fn(10) *) reg attr46;
|
||||
|
||||
// Macro escaped
|
||||
`define A_MACRO(arg) (* attr = `"arg`" *)
|
||||
`A_MACRO(test) reg attr47;
|
||||
|
||||
initial begin
|
||||
$display("PASSED");
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue