added {| |}, etc to vscode syntax highlighter

This commit is contained in:
thsm
2021-12-21 15:38:18 -08:00
committed by Christoffer Lerno
parent 012f258fa2
commit 1a9b8095b6
2 changed files with 16 additions and 6 deletions

View File

@@ -9,13 +9,15 @@
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
["(", ")"],
["{|", "|}"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["{|", "|}"],
["\"", "\""],
["'", "'"]
],

View File

@@ -19,7 +19,7 @@
},
{
"name": "keyword",
"match": "\\b(do|else|for|goto|if|return|null)\\b"
"match": "\\b(do|else|for|goto|if|return|null|macro)\\b"
},
{
"name": "keyword",
@@ -27,7 +27,7 @@
},
{
"name": "keyword",
"match": "\\b(generic|switch|typedef|volatile)\\b"
"match": "\\b(generic|switch|typedef|volatile|private)\\b"
},
{
"name": "keyword",
@@ -138,12 +138,20 @@
"match": "\\b(double|usize|type|Type|bool|char|enum|float|int|uint|long|ulong|short|ushort|struct|void)\\b"
},
"support": {
"name": "support.function.builtin",
"match": "\\$[_a-zA-Z][_a-zA-Z0-9]*"
"patterns": [
{
"name": "support.function.builtin",
"match": "\\$[_a-zA-Z][_a-zA-Z0-9]*"
},
{
"name": "support.function.macro",
"match": "@[_a-zA-Z][_a-zA-Z0-9]*"
}
]
},
"operators": {
"name": "keyword.operator",
"match": "(\\+|-|\\.|%|&|\\||=|<|>|!|\\^|\\*|/|::)=?"
"match": "(\\+|-|\\.|%|&|\\|(?!})|=|<|>|!|\\^|\\*|/|::)=?"
}
},
"scopeName": "source.c3"