diff --git a/tool/src/org/antlr/v4/parse/ANTLRLexer.g b/tool/src/org/antlr/v4/parse/ANTLRLexer.g index 7c89ae2c1..446d5aac6 100644 --- a/tool/src/org/antlr/v4/parse/ANTLRLexer.g +++ b/tool/src/org/antlr/v4/parse/ANTLRLexer.g @@ -299,7 +299,7 @@ ARG_ACTION ACTION : NESTED_ACTION ( '?' {$type = SEMPRED;} - ( '=>' // v3 gated sempred + ( (WSNLCHARS* '=>') => WSNLCHARS* '=>' // v3 gated sempred { Token t = new CommonToken(input, state.type, state.channel, state.tokenStartCharIndex, getCharIndex()-1); t.setLine(state.tokenStartLine);