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 {
414414 case 'panic' :
415415 case 'fatal' :
416416 case 'error' :
417- case 'fatal error' :
418417 severity = vscode . DiagnosticSeverity . Error ;
419418 break ;
420419
@@ -431,9 +430,10 @@ export class FortranLintingProvider {
431430 severity = vscode . DiagnosticSeverity . Information ;
432431 break ;
433432
433+ // fatal error, sequence error, etc.
434434 default :
435435 severity = vscode . DiagnosticSeverity . Error ;
436- console . log ( 'Unknown severity : ' + msg_type ) ;
436+ console . log ( 'Using default Error Severity for : ' + msg_type ) ;
437437 break ;
438438 }
439439
@@ -486,8 +486,13 @@ export class FortranLintingProvider {
486486 // see https://regex101.com/r/GZ0Lzz/2
487487 return / ^ (?< fname > (?: \w : \\ ) ? .* ) \( (?< ln > \d + ) \) : \s * (?: # (?: (?< sev2 > \w * ) : \s * (?< msg2 > .* $ ) ) | (?< sev1 > \w * ) \s * (?< msg1 > .* $ ) (?: \s * .* \s * ) (?< cn > - * \^ ) ) / gm;
488488
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+ */
489494 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;
491496
492497 default :
493498 vscode . window . showErrorMessage ( 'Unsupported linter, change your linter.compiler option' ) ;
You can’t perform that action at this time.
0 commit comments