File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 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 {
1919 private doModernFortranLint ( textDocument : vscode . TextDocument ) {
2020
2121
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;
2323
2424 if ( textDocument . languageId !== LANGUAGE_ID ) {
2525 return ;
Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ export const _loadDocString = (keyword: string) => {
8282}
8383
8484export const getIncludeParams = ( paths : string [ ] ) => {
85+ if ( paths . length == 0 ) {
86+ return ""
87+ }
8588 return "-I " + paths . join ( " " ) ;
8689} ;
8790
Original file line number Diff line number Diff line change 192192 <key >comment </key >
193193 <string >statements controling the flow of the program </string >
194194 <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 >
196196 <key >name </key >
197197 <string >keyword.control.fortran </string >
198198 </dict >
You can’t perform that action at this time.
0 commit comments