forked from jasder/antlr
Merge pull request #1403 from sharwell/fix-1402
Fix failure to identify prefix rules that also recurse
This commit is contained in:
commit
178f956b1f
|
@ -127,7 +127,7 @@ binary
|
||||||
|
|
||||||
prefix
|
prefix
|
||||||
: ^( ALT elementOptions?
|
: ^( ALT elementOptions?
|
||||||
({!((CommonTree)input.LT(1)).getText().equals(ruleName)}? element)+
|
element+
|
||||||
recurse epsilonElement*
|
recurse epsilonElement*
|
||||||
)
|
)
|
||||||
{setAltAssoc((AltAST)$ALT,currentOuterAltNumber);}
|
{setAltAssoc((AltAST)$ALT,currentOuterAltNumber);}
|
||||||
|
|
Loading…
Reference in New Issue