Fix failure to identify prefix rules that also recurse

Fixes #1402
This commit is contained in:
Sam Harwell 2016-11-24 14:38:34 -06:00
parent 6c2d4e6225
commit f196971565
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);}