forked from jasder/antlr
Fix incorrect assignment of stop token
This commit is contained in:
parent
b10827d91c
commit
1ccaad7ae1
|
@ -536,7 +536,7 @@ func (p *BaseParser) PushNewRecursionContext(localctx ParserRuleContext, state,
|
|||
var previous = p._ctx
|
||||
previous.SetParent(localctx)
|
||||
previous.SetInvokingState(state)
|
||||
previous.SetStart(p._input.LT(-1))
|
||||
previous.SetStop(p._input.LT(-1))
|
||||
|
||||
p._ctx = localctx
|
||||
p._ctx.SetStart(previous.GetStart())
|
||||
|
|
Loading…
Reference in New Issue