There was an error while loading. Please reload this page.
1 parent 48ce4c5 commit 3a45605Copy full SHA for 3a45605
src/linter/SlangLinter.ts
@@ -93,7 +93,7 @@ export default class SlangLinter extends BaseLinter {
93
{ cwd: cwd },
94
(_error: Error, _stdout: string, stderr: string) => {
95
let diagnostics: vscode.Diagnostic[] = [];
96
- const re = /(.+?):(\d+):(\d+):\s(note|warning|error):\s([^[\]]*)(\[-W(.*)\])?/;
+ const re = /(.+?):(\d+):(\d+):\s(note|warning|error):\s(.*?)(\[-W(.*)\]|$)/;
97
stderr.split(/\r?\n/g).forEach((line, _) => {
98
if (line.search(re) === -1) {
99
return;
0 commit comments