From 78ba49258e6d3aa243784e08dc5de57d2311dba3 Mon Sep 17 00:00:00 2001 From: cyqw Date: Fri, 12 Sep 2025 09:34:49 +0800 Subject: [PATCH] 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 --- runtime/Go/antlr/v4/atn_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/Go/antlr/v4/atn_config.go b/runtime/Go/antlr/v4/atn_config.go index 267308bb3d..031d80bc29 100644 --- a/runtime/Go/antlr/v4/atn_config.go +++ b/runtime/Go/antlr/v4/atn_config.go @@ -313,7 +313,7 @@ func (a *ATNConfig) LEquals(other Collectable[*ATNConfig]) bool { switch { case a.lexerActionExecutor == nil && otherT.lexerActionExecutor == nil: - return true + //return true case a.lexerActionExecutor != nil && otherT.lexerActionExecutor != nil: if !a.lexerActionExecutor.Equals(otherT.lexerActionExecutor) { return false