From 178df68183d55d86d11b6c4c5daac7c70d00b605 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Sun, 18 Nov 2012 18:01:07 -0600 Subject: [PATCH] Whitespace can appear between {...}? and => in v3 gated semantic predicates --- tool/src/org/antlr/v4/parse/ANTLRLexer.g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);