diff --git a/src/verilog.y b/src/verilog.y index 58ba70cb4..6de86c676 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -2742,9 +2742,14 @@ specifyJunk: ; specparam_declaration: // ==IEEE: specparam_declaration - ySPECPARAM junkToSemi ';' { $$ = NULL; } + ySPECPARAM junkToSemiList ';' { $$ = NULL; } ; +junkToSemiList: + junkToSemi { } /* ignored */ + | junkToSemiList junkToSemi { } /* ignored */ + ; + junkToSemi: BISONPRE_NOT(';',yENDSPECIFY,yENDMODULE) { } | error {}