mirror of
https://github.com/MontFerret/ferret.git
synced 2025-08-13 19:52:52 +02:00
Reorder syntax error matchers: move common error matcher to the correct position for improved error analysis
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user