Skip to content

Commit 12315c0

Browse files
committed
goto/attend tweaks
1 parent 7c61300 commit 12315c0

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

syntaxes/usecode.tmLanguage.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
{
2121
"include": "#keywords"
2222
},
23+
{
24+
"include": "#goto-type"
25+
},
2326
{
2427
"include": "#script-commands"
2528
},
@@ -199,7 +202,7 @@
199202
},
200203
{
201204
"name": "keyword.control.flow.usecode",
202-
"match": "\\b(?:if|else|return|do|while|for|nobreak|switch|converse|case|always|break|goto|default|fallthrough|try|catch|throw|abort|forever|breakable)\\b"
205+
"match": "\\b(?:if|else|return|do|while|for|nobreak|switch|converse|case|always|break|default|fallthrough|try|catch|throw|abort|forever|breakable)\\b"
203206
},
204207
{
205208
"name": "storage.type.usecode",
@@ -235,7 +238,15 @@
235238
},
236239
{
237240
"name": "keyword.other.usecode",
238-
"match": "\\b(?:after|ticks|static|endconv|attend)\\b"
241+
"match": "\\b(?:after|ticks|static|endconv)\\b"
242+
}
243+
]
244+
},
245+
"goto-type": {
246+
"patterns": [
247+
{
248+
"name": "keyword.other.goto-type.usecode",
249+
"match": "\\b(?:goto|attend)\\b"
239250
}
240251
]
241252
},

0 commit comments

Comments
 (0)