Whitespace can appear between {...}? and => in v3 gated semantic predicates

This commit is contained in:
Sam Harwell 2012-11-18 18:01:07 -06:00
parent aace1ce399
commit 178df68183
1 changed files with 1 additions and 1 deletions

View File

@ -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);