Open PCfVW opened 6 years ago
It seems that the current grammar (pddl.g4) cannot handle comments on the last line of a pddl file.
If one newline is added to the pddl file (after the comment on the last line) then no syntax error is generated.
I suggest the following to correct this:
LINE_COMMENT : ';' (~[\r\n]*) ('\r\n'|'\r'|'\n'|EOF) -> skip ;
It seems that the current grammar (pddl.g4) cannot handle comments on the last line of a pddl file.
If one newline is added to the pddl file (after the comment on the last line) then no syntax error is generated.
I suggest the following to correct this:
LINE_COMMENT : ';' (~[\r\n]*) ('\r\n'|'\r'|'\n'|EOF) -> skip ;