We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae600b5 commit 0b4c7a6Copy full SHA for 0b4c7a6
src/features/linter-provider.ts
@@ -16,7 +16,7 @@ export default class FortranLintingProvider {
16
17
private diagnosticCollection: vscode.DiagnosticCollection;
18
private doModernFortranLint(textDocument: vscode.TextDocument) {
19
- const errorRegex: RegExp = /^([^:]*):([0-9]+):([0-9]+):\n\s(.*)\n.*\n(Error|Warning|Fatal Error):\s(.*)$/gm;
+ const errorRegex: RegExp = /^.{2}([^:]*):([0-9]+):([0-9]+):\r?\n\s*(.*)\r?\n.*\r?\n(Error|Warning|Fatal Error):\s(.*)$/gm;;
20
21
if (textDocument.languageId !== LANGUAGE_ID) {
22
return;
0 commit comments