Skip to content

Commit

Permalink
Fix warning parsing on newer GHC
Browse files Browse the repository at this point in the history
Handle warning format of the latest (>= 9.6.4) versions of GHC
  • Loading branch information
EduardSergeev committed May 11, 2024
1 parent b883e7b commit e77963e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/dramforever/vscode-ghc-simple"
},
"license": "ISC",
"version": "0.2.3",
"version": "0.2.4",
"publisher": "dramforever",
"engines": {
"vscode": "^1.40.0"
Expand Down
2 changes: 1 addition & 1 deletion src/features/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const regex = {
// 7-10: variant 3: (line, col)
message_base: /^(.+):(?:(\d+):(\d+)|(\d+):(\d+)-(\d+)|\((\d+),(\d+)\)-\((\d+),(\d+)\)): (.+)$/,
single_line_error: /^error: (?:\[.+\] )?([^\[].*)$/,
single_line_warning: /^warning: \[(.+)\] (.+)$/,
single_line_warning: /^warning: \[(.+)\] ([^\[].*)$/,
error: /^error:(?: \[.*\])?$/,
warning: /^warning:(?: \[(.+)\])?$/
};
Expand Down

0 comments on commit e77963e

Please sign in to comment.