Skip to content

Commit 213f039

Browse files
committed
Fixed function ID allowing whitespace before the parenthesis
Also fixed maddening inconsistent highlighting caused by ligatures (specifically, `#(` vs `# (`).
1 parent 211ff17 commit 213f039

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

syntaxes/usecode.tmLanguage.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,11 @@
294294
"operators": {
295295
"patterns": [
296296
{
297-
"name": "keyword.operator.usecode",
298-
"match": "\\b(?:object#|id#|shape#)(?=\\()"
297+
"match": "\\b(object|id|shape)(#)(?=\\s*\\()",
298+
"captures": {
299+
"1": { "name": "keyword.operator.usecode" },
300+
"2": { "name": "punctuation.section.parens" }
301+
}
299302
},
300303
{
301304
"name": "keyword.operator.usecode",

0 commit comments

Comments
 (0)