File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,6 @@ export class FortranLintingProvider {
414
414
case 'panic' :
415
415
case 'fatal' :
416
416
case 'error' :
417
- case 'fatal error' :
418
417
severity = vscode . DiagnosticSeverity . Error ;
419
418
break ;
420
419
@@ -431,9 +430,10 @@ export class FortranLintingProvider {
431
430
severity = vscode . DiagnosticSeverity . Information ;
432
431
break ;
433
432
433
+ // fatal error, sequence error, etc.
434
434
default :
435
435
severity = vscode . DiagnosticSeverity . Error ;
436
- console . log ( 'Unknown severity : ' + msg_type ) ;
436
+ console . log ( 'Using default Error Severity for : ' + msg_type ) ;
437
437
break ;
438
438
}
439
439
@@ -486,8 +486,13 @@ export class FortranLintingProvider {
486
486
// see https://regex101.com/r/GZ0Lzz/2
487
487
return / ^ (?< fname > (?: \w : \\ ) ? .* ) \( (?< ln > \d + ) \) : \s * (?: # (?: (?< sev2 > \w * ) : \s * (?< msg2 > .* $ ) ) | (?< sev1 > \w * ) \s * (?< msg1 > .* $ ) (?: \s * .* \s * ) (?< cn > - * \^ ) ) / gm;
488
488
489
+ /*
490
+ See Section 7 of the NAGFOR manual, although it is not accurate with regards
491
+ to all the possible messages.
492
+ severity: filename, line No.: message
493
+ */
489
494
case 'nagfor' :
490
- return / ^ (?< sev1 > R e m a r k | I n f o | N o t e | W a r n i n g | Q u e s t i o n a b l e | E x t e n s i o n | D e l e t e d f e a t u r e u s e d | E r r o r | F a t a l (?: E r r o r ) ? | P a n i c ) ( \( \w + \) ) ? : (?< fname > [ \S ] + ) , l i n e (?< ln > \d + ) : (?< msg1 > .+ ) $ / gm;
495
+ return / ^ (?< sev1 > R e m a r k | I n f o | N o t e | W a r n i n g | Q u e s t i o n a b l e | E x t e n s i o n | O b s o l e s c e n t | D e l e t e d f e a t u r e u s e d | (?: [ \w ] + ) ? E r r o r | F a t a l | P a n i c ) ( \( \w + \) ) ? : (?< fname > [ \S ] + ) , l i n e (?< ln > \d + ) : (?< msg1 > .+ ) $ / gm;
491
496
492
497
default :
493
498
vscode . window . showErrorMessage ( 'Unsupported linter, change your linter.compiler option' ) ;
You can’t perform that action at this time.
0 commit comments