From bbf31e968804bb5e59f4066d05508aca9a89b3c0 Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 26 Aug 2022 12:09:28 +0200 Subject: [PATCH] Update vscode syntax --- .../syntaxes/sapphire.tmLanguage.json | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/editors/vscode/sapphirelang/syntaxes/sapphire.tmLanguage.json b/editors/vscode/sapphirelang/syntaxes/sapphire.tmLanguage.json index 98551f7..8657a8b 100644 --- a/editors/vscode/sapphirelang/syntaxes/sapphire.tmLanguage.json +++ b/editors/vscode/sapphirelang/syntaxes/sapphire.tmLanguage.json @@ -23,16 +23,20 @@ ], "repository": { "keywords": { - "patterns": [{ - "name": "keyword.control.sapphire", - "match": "\\b(out|var|import|ret|asm)\\b" - }] + "patterns": [ + { + "name": "keyword.control.sapphire", + "match": "\\b(let|in|syscall0|syscall1|syscall2|syscall3|syscall4|syscall5)\\b" + } + ] }, "types": { - "patterns": [{ - "name": "entity.name.type", - "match": "\\b(u8|u16|u32|u64|i8|i16|i32|i64|ptr8|ptr16|ptr32|ptr64|str|void)\\b" - }] + "patterns": [ + { + "name": "entity.name.type", + "match": "\\b(u8|u16|u32|u64|i8|i16|i32|i64|ptr8|ptr16|ptr32|ptr64|str|void)\\b" + } + ] }, "strings": { "name": "string.quoted.sapphire", @@ -53,7 +57,7 @@ "functions": { "name": "support.function", "begin": "@", - "end": "(\\s|\\{|\\()" + "end": "\\b(in|;)\\b" }, "variables": { "name": "variable.name",