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:
@@ -8,10 +8,10 @@ type SyntaxErrorMatcher func(src *file.Source, err *CompilationError, offending
|
|||||||
|
|
||||||
func AnalyzeSyntaxError(src *file.Source, err *CompilationError, offending *TokenNode) bool {
|
func AnalyzeSyntaxError(src *file.Source, err *CompilationError, offending *TokenNode) bool {
|
||||||
matchers := []SyntaxErrorMatcher{
|
matchers := []SyntaxErrorMatcher{
|
||||||
matchCommonErrors,
|
|
||||||
matchLiteralErrors,
|
matchLiteralErrors,
|
||||||
matchMissingAssignmentValue,
|
matchMissingAssignmentValue,
|
||||||
matchForLoopErrors,
|
matchForLoopErrors,
|
||||||
|
matchCommonErrors,
|
||||||
matchMissingReturnValue,
|
matchMissingReturnValue,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user