Update vscode syntax

This commit is contained in:
apio 2022-08-26 12:09:28 +02:00
parent 99f56d3a61
commit bbf31e9688

View File

@ -23,16 +23,20 @@
], ],
"repository": { "repository": {
"keywords": { "keywords": {
"patterns": [{ "patterns": [
"name": "keyword.control.sapphire", {
"match": "\\b(out|var|import|ret|asm)\\b" "name": "keyword.control.sapphire",
}] "match": "\\b(let|in|syscall0|syscall1|syscall2|syscall3|syscall4|syscall5)\\b"
}
]
}, },
"types": { "types": {
"patterns": [{ "patterns": [
"name": "entity.name.type", {
"match": "\\b(u8|u16|u32|u64|i8|i16|i32|i64|ptr8|ptr16|ptr32|ptr64|str|void)\\b" "name": "entity.name.type",
}] "match": "\\b(u8|u16|u32|u64|i8|i16|i32|i64|ptr8|ptr16|ptr32|ptr64|str|void)\\b"
}
]
}, },
"strings": { "strings": {
"name": "string.quoted.sapphire", "name": "string.quoted.sapphire",
@ -53,7 +57,7 @@
"functions": { "functions": {
"name": "support.function", "name": "support.function",
"begin": "@", "begin": "@",
"end": "(\\s|\\{|\\()" "end": "\\b(in|;)\\b"
}, },
"variables": { "variables": {
"name": "variable.name", "name": "variable.name",