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_$]* {
|
<PCOMENT>`[a-zA-Z][a-zA-Z0-9_$]* {
|
||||||
if (macro_needs_args(yytext+1)) yy_push_state(MA_START); else do_expand(0);
|
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.
|
/* Strings do not contain preprocessor directives or macro expansions.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,10 @@ endfunction
|
||||||
|
|
||||||
(* attr = fn(10) *) reg attr46;
|
(* attr = fn(10) *) reg attr46;
|
||||||
|
|
||||||
|
// Macro escaped
|
||||||
|
`define A_MACRO(arg) (* attr = `"arg`" *)
|
||||||
|
`A_MACRO(test) reg attr47;
|
||||||
|
|
||||||
initial begin
|
initial begin
|
||||||
$display("PASSED");
|
$display("PASSED");
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue