preprocessor placement gives error #950
Labels
preprocessor
anything related to preprocessing (conditionals, macros, etc.)
rejects-valid syntax
If the parser wrongly rejects syntactically valid code (according to SV-2017).
Describe the bug
If I put `else in the middle of a module declaration (before ;) it fails. This is valid code.
To Reproduce
ifndef three module test1
elsemodule test2
`endif
;
endmodule
Did it reject valid code? or crash?
./verible-verilog-lint blah.v
blah.v:3:1: syntax error, rejected "`else" (syntax-error).
blah.v:7:1: syntax error, rejected "endmodule" (syntax-error).
Expected behavior
A clear and concise description of what you expected to happen. Citations to the
SystemVerilog-2017 Standard (LRM)
would help.
The text was updated successfully, but these errors were encountered: