Skip to content

Commit 3bcfa6c

Browse files
committed
bug(linter): adds support for old GFortran
GFortran v4.x.x used a dot (.) instead of a : to indicate the column number where an error occurred
1 parent 345072f commit 3bcfa6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/linters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class GNULinter extends Linter {
5353
constructor() {
5454
super(
5555
'gfortran',
56-
/(?:^(?<fname>(?:\w:\\)?.*):(?<ln>\d+):(?<cn>\d+):(?:\s+.*\s+.*?\s+)(?<sev1>Error|Warning|Fatal Error):\s(?<msg1>.*)$)|(?:^(?<bin>\w+):\s*(?<sev2>\w+\s*\w*):\s*(?<msg2>.*)$)/gm,
56+
/(?:^(?<fname>(?:\w:\\)?.*):(?<ln>\d+):(?<cn>\d+)[:.](?:\s+.*\s+.*?\s+)(?<sev1>Error|Warning|Fatal Error):\s(?<msg1>.*)$)|(?:^(?<bin>\w+):\s*(?<sev2>\w+\s*\w*):\s*(?<msg2>.*)$)/gm,
5757
{
5858
errors: ['error', 'fatal error'],
5959
warnings: ['warning'],

0 commit comments

Comments
 (0)