From 052beb2c5145da8131244367d24ef432066b28f1 Mon Sep 17 00:00:00 2001 From: Tim Voronov Date: Wed, 13 Aug 2025 11:56:07 -0400 Subject: [PATCH] Reorder syntax error matchers: move common error matcher to the correct position for improved error analysis --- pkg/compiler/internal/diagnostics/error_analyzer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compiler/internal/diagnostics/error_analyzer.go b/pkg/compiler/internal/diagnostics/error_analyzer.go index 95b0c7fe..9b61e8e4 100644 --- a/pkg/compiler/internal/diagnostics/error_analyzer.go +++ b/pkg/compiler/internal/diagnostics/error_analyzer.go @@ -8,10 +8,10 @@ type SyntaxErrorMatcher func(src *file.Source, err *CompilationError, offending func AnalyzeSyntaxError(src *file.Source, err *CompilationError, offending *TokenNode) bool { matchers := []SyntaxErrorMatcher{ - matchCommonErrors, matchLiteralErrors, matchMissingAssignmentValue, matchForLoopErrors, + matchCommonErrors, matchMissingReturnValue, }