mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 20:52:45 +08:00
Moar errors
This commit is contained in:
@@ -981,7 +981,7 @@ collectNotes = do
|
||||
|
||||
getNotes s = getNotesWith readScript doAllAnalysis s
|
||||
getNotesWith parser analytics s =
|
||||
case rp (parseWithNotes (parser) analytics) s of
|
||||
case rp (parseWithNotes (do { x <- parser; eof; return x; }) analytics) s of
|
||||
(Right (x, notes), parsenotes) -> sortNotes $ notes ++ parsenotes
|
||||
(Left err, p) -> sortNotes $ (ParseNote (initialPos "-") ErrorC $ "Parsing failed: " ++ (show err)):(p)
|
||||
|
||||
|
Reference in New Issue
Block a user