mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 15:17:36 +00:00
Ignore "// verilator" comments alone on endif lines.
This commit is contained in:
parent
52912c6329
commit
5a1a5a7d97
2
Changes
2
Changes
@ -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.
|
||||
|
@ -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;}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user