Skip to content

Commit 78ba492

Browse files
committed
fix issue in ATNConfig::LEquals, it may cause some token can't match with text (some ATN's target in the token have same hash with other token's)
Signed-off-by: cyqw <[email protected]>
1 parent bd8f993 commit 78ba492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/Go/antlr/v4/atn_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ func (a *ATNConfig) LEquals(other Collectable[*ATNConfig]) bool {
313313

314314
switch {
315315
case a.lexerActionExecutor == nil && otherT.lexerActionExecutor == nil:
316-
return true
316+
//return true
317317
case a.lexerActionExecutor != nil && otherT.lexerActionExecutor != nil:
318318
if !a.lexerActionExecutor.Equals(otherT.lexerActionExecutor) {
319319
return false

0 commit comments

Comments
 (0)