From 5f4a6f8b049e1636505eac99cd9e43276f1a0df4 Mon Sep 17 00:00:00 2001 From: Zedritsch Date: Fri, 8 Dec 2023 09:04:30 +0100 Subject: [PATCH] Added `is` keyword --- syntax/laye.tmLanguage.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/laye.tmLanguage.json b/syntax/laye.tmLanguage.json index 2146067..3f83a2d 100644 --- a/syntax/laye.tmLanguage.json +++ b/syntax/laye.tmLanguage.json @@ -72,7 +72,7 @@ "patterns": [ { "name": "keyword.laye", - "match": "\\b(?:alias|alignof|and|as|assert|break|c(?:ast|atch|allconv|ase|onst|ontinue)|default|defer|delete|discard|discardable|do|else|enum|export|for|foreign|from|goto|if|import|inline|mut|new|not|offsetof|operator|or|return|sizeof|struct|switch|test|try|varargs|variant|xor|xyzzy)\\b" + "match": "\\b(?:alias|alignof|and|as|assert|break|cast|catch|callconv|case|const|continue|default|defer|delete|discard|discardable|do|else|enum|export|for|foreign|from|goto|if|import|inline|is|mut|new|not|offsetof|operator|or|return|sizeof|struct|switch|test|try|varargs|variant|xor|xyzzy)\\b" }, { "name": "constant.language.laye", @@ -142,7 +142,7 @@ }, "type": { "name": "entity.name.type.laye", - "match": "(?<=\\b(?:alias|const|enum|struct|variant)\\s+)[0-9A-Z_a-z]+\\b|(?)?[\\s&*?]*[0-9A-Z_a-z{])|(?<=<(?:[\\s,0-9A-Z_a-z]+,)?\\s*)[0-9A-Z_a-z]+(?=\\s*[,>])" + "match": "(?<=\\b(?:alias|const|enum|struct|variant)\\s+)[0-9A-Z_a-z]+\\b|(?)?[\\s&*?]*[0-9A-Z_a-z{])|(?<=<(?:[\\s,0-9A-Z_a-z]+,)?\\s*)[0-9A-Z_a-z]+(?=\\s*[,>])" }, "function": { "name": "entity.name.function.laye",