Skip to content

Parser recovery is wrong with invalid statements in the module definition section

If there are invalid statements in the module definition sections, ANTLR recovery fails and the analysis for the rest of the module after the bad statement is skipped. No error/warning markers are added, and existing markers are removed:

image

image