Skip to content

Commit 3817c88

Browse files
committed
Added exit keyword to fortran syntax definition
The EXIT keyword was added along with the CYCLE keyword to control the program flow within loops. EXIT is equivalent to `break` in C/C++.
1 parent 18f1de4 commit 3817c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntaxes/fortran.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
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>

0 commit comments

Comments
 (0)