Skip to content

Commit 4a7dfef

Browse files
authored
Fix constant syntax highlighting. (#222)
1 parent 055efe8 commit 4a7dfef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

vscode/syntaxes/toit.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548
},
549549
{
550550
"name": "constant.numeric.capitalized_user_constants.toit",
551-
"match": "\\b[A-Z][A-Z0-9_]+\\b"
551+
"match": "\\b_*[A-Z](-?[A-Z0-9_])+\\b"
552552
}
553553
]
554554
},

vscode/syntaxes/toit.tmLanguage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ repository:
335335
- name: constant.language.toit
336336
match: \b(null|true|false)\b
337337
- name: constant.numeric.capitalized_user_constants.toit
338-
match: \b[A-Z][A-Z0-9_]+\b
338+
match: \b_*[A-Z](-?[A-Z0-9_])+\b
339339

340340
number:
341341
name: constant.numeric.toit

0 commit comments

Comments
 (0)