Skip to content

Commit f20856e

Browse files
committed
Adds error highlighting for else labeled
1 parent 3d60be6 commit f20856e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

syntaxes/fortran_free-form.tmLanguage.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,10 +1646,13 @@
16461646
"patterns": [
16471647
{
16481648
"comment": "capture the label if present",
1649-
"match": "\\s*([a-z]\\w*)?\\s*",
1649+
"match": "\\s*([a-z]\\w*)?\\s*\\b(\\w*)\\b",
16501650
"captures": {
16511651
"1": {
16521652
"name": "meta.label.else.fortran"
1653+
},
1654+
"2": {
1655+
"name": "invalid.error.label.else.fortran"
16531656
}
16541657
}
16551658
},

0 commit comments

Comments
 (0)