Skip to content

Commit

Permalink
Fix constant syntax highlighting. (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch authored Aug 9, 2023
1 parent 055efe8 commit 4a7dfef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vscode/syntaxes/toit.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@
},
{
"name": "constant.numeric.capitalized_user_constants.toit",
"match": "\\b[A-Z][A-Z0-9_]+\\b"
"match": "\\b_*[A-Z](-?[A-Z0-9_])+\\b"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion vscode/syntaxes/toit.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ repository:
- name: constant.language.toit
match: \b(null|true|false)\b
- name: constant.numeric.capitalized_user_constants.toit
match: \b[A-Z][A-Z0-9_]+\b
match: \b_*[A-Z](-?[A-Z0-9_])+\b

number:
name: constant.numeric.toit
Expand Down

0 comments on commit 4a7dfef

Please sign in to comment.