Commit c17d8599 by Zachary Snow

tolerate escaped vendor comments within macros

parent 581a7911
......@@ -546,6 +546,10 @@ preprocessInput = do
'/' : '*' : _ -> removeThrough "*/"
'`' : '"' : _ -> handleBacktickString
'"' : _ -> handleString
'/' : '`' : '`' : '*' : _ ->
if null macroStack
then consume
else removeThrough "*``/"
'`' : '`' : _ -> do
if null macroStack
then do
......
// pattern: Parse error
module top;
/``* some awful garbage *``/
endmodule
`define YUCK /``* some awful garbage *``/
module top;
`YUCK
endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment