Skip to content

Commit

Permalink
add symbols to syntax highlighting
Browse files Browse the repository at this point in the history
= ? . , : ;
  • Loading branch information
slanden authored and Vexu committed May 20, 2024
1 parent ed1ad07 commit 8ba9f01
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions syntaxes/zig.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
{
"include": "#operators"
},
{
"include": "#punctuation"
},
{
"include": "#numbers"
},
Expand Down Expand Up @@ -194,6 +197,14 @@
{
"name": "keyword.operator.special.zig",
"match": "(==|\\+\\+|\\*\\*|->)"
},
{
"name": "keyword.operator.assignment.zig",
"match": "="
},
{
"name": "keyword.operator.question.zig",
"match": "\\?"
}
]
},
Expand Down Expand Up @@ -229,6 +240,26 @@
}
]
},
"punctuation": {
"patterns": [
{
"name": "punctuation.accessor.zig",
"match": "\\."
},
{
"name": "punctuation.comma.zig",
"match": ","
},
{
"name": "punctuation.separator.key-value.zig",
"match": ":"
},
{
"name": "punctuation.terminator.statement.zig",
"match": ";"
}
]
},
"strings": {
"patterns": [
{
Expand Down

0 comments on commit 8ba9f01

Please sign in to comment.