Merge pull request #1403 from sharwell/fix-1402

Fix failure to identify prefix rules that also recurse
This commit is contained in:
Terence Parr 2016-11-24 12:59:24 -08:00 committed by GitHub
commit 178f956b1f
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ binary
prefix
: ^( ALT elementOptions?
({!((CommonTree)input.LT(1)).getText().equals(ruleName)}? element)+
element+
recurse epsilonElement*
)
{setAltAssoc((AltAST)$ALT,currentOuterAltNumber);}