Ignore "// verilator" comments alone on endif lines.

This commit is contained in:
Wilson Snyder 2008-06-11 13:09:36 -04:00
parent 52912c6329
commit 5a1a5a7d97
3 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,8 @@ indicates the contributor was also the author of the fix; Thanks!
**** Fix compile errors under Fedora 9, GCC 4.3.0. [by Jeremy Bennett]
**** Ignore "// verilator" comments alone on endif lines. [Rodney Sinclair]
* Verilator 3.664 2008/05/08
**** Fix missing file in kit.

View File

@ -529,6 +529,7 @@ escid \\[^ \t\f\r\n]+
/* Converted from //{cmt}verilator ...{cmt} by preprocessor */
<V95,V01,V05,S05,PSL>{
"/*verilator"{ws}*"*/" {} /* Ignore empty comments, may be `endif // verilator */
"/*verilator clock_enable*/" {yylval.fileline = CRELINE(); return yVL_CLOCK_ENABLE;}
"/*verilator coverage_block_off*/" {yylval.fileline = CRELINE(); return yVL_COVER_OFF;}
"/*verilator full_case*/" {yylval.fileline = CRELINE(); return yVL_FULL_CASE;}

View File

@ -71,7 +71,8 @@ module t (/*AUTOARG*/
printf("In systemc_dtor\n");
printf("*-* All Finished *-*\n");
`verilog
`endif
// Test verilator comment after a endif
`endif // verilator
endmodule