diff --git a/package.json b/package.json index 833d6ed..e023f6d 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/features/diagnostics.ts b/src/features/diagnostics.ts index 08160c8..7ceedbf 100644 --- a/src/features/diagnostics.ts +++ b/src/features/diagnostics.ts @@ -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:(?: \[(.+)\])?$/ };