File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default class FortranLintingProvider {
19
19
private doModernFortranLint ( textDocument : vscode . TextDocument ) {
20
20
21
21
22
- const errorRegex : RegExp = / ^ ( [ A - Z ] : \\ ) * ( [ ^ : ] * ) : ( [ 0 - 9 ] + ) : ( [ 0 - 9 ] + ) : \n + ( .* ) \n . * \n ( E r r o r | W a r n i n g | F a t a l E r r o r ) : \s ( .* ) $ / gm;
22
+ const errorRegex : RegExp = / ^ ( [ a - z A - Z ] : \\ ) * ( [ ^ : ] * ) : ( [ 0 - 9 ] + ) : ( [ 0 - 9 ] + ) : \s + ( .* ) \s + . * ? \s + ( E r r o r | W a r n i n g | F a t a l E r r o r ) : \s ( .* ) $ / gm;
23
23
24
24
if ( textDocument . languageId !== LANGUAGE_ID ) {
25
25
return ;
Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ export const _loadDocString = (keyword: string) => {
82
82
}
83
83
84
84
export const getIncludeParams = ( paths : string [ ] ) => {
85
+ if ( paths . length == 0 ) {
86
+ return ""
87
+ }
85
88
return "-I " + paths . join ( " " ) ;
86
89
} ;
87
90
Original file line number Diff line number Diff line change 192
192
<key >comment </key >
193
193
<string >statements controling the flow of the program </string >
194
194
<key >match </key >
195
- <string >\b(?i:(go\s*to|assign|to|if|then|else|elseif|end\s*if|continue|stop|pause|do|end\s*do|while|cycle))\b </string >
195
+ <string >\b(?i:(go\s*to|assign|to|if|then|else|elseif|end\s*if|continue|stop|pause|do|end\s*do|while|cycle|exit ))\b </string >
196
196
<key >name </key >
197
197
<string >keyword.control.fortran </string >
198
198
</dict >
You can’t perform that action at this time.
0 commit comments