Using .* and .+ at the end of a lexer rule is illegal in ANTLR:
ID : .*; // illegal
ID : 'bar' .*; // illegal
ID : .* 'bar'; // legal
In parser rules, this is not the case.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more