1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-08-15 20:02:56 +02:00

Reorder syntax error matchers: move common error matcher to the correct position for improved error analysis

This commit is contained in:
Tim Voronov
2025-08-13 11:56:07 -04:00
parent 2e0a8b6d7c
commit 052beb2c51

View File

@@ -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,
}