Skip to content

Commit

Permalink
add special coloring for all caps variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldenlion5648 committed Jan 19, 2025
1 parent 42ce5bd commit 24fba63
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions editors/vscode/syntaxes/odin.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"name": "meta.definition.variable.odin",
"match": "([A-Za-z_]\\w*)\\s*(:\\s*:)",
"captures": {
"1": { "name": "variable.other.constant.odin" },
"1": { "name": "constant.language.odin" },
"2": { "name": "keyword.operator.assignment.odin" }
}
},
Expand Down Expand Up @@ -481,7 +481,7 @@
"match": "\\b(context)\\b"
},
{
"name": "variable.other.constant.odin",
"name": "constant.other.odin",
"match": "\\b(ODIN_ARCH|ODIN_OS)\\b"
},
{
Expand All @@ -492,6 +492,10 @@
"name": "constant.language.odin",
"match": "---"
},
{
"name": "constant.other.odin",
"match": "\\b([A-Z_0-9])+\\b"
},
{
"name": "constant.numeric.odin",
"match": "\\b(\\d(\\d|_)*(\\.\\d(\\d|_)*)?)((e|E)(\\+|-)?\\d+)?[ijk]?\\b"
Expand Down

0 comments on commit 24fba63

Please sign in to comment.