fix missing keywords

This commit is contained in:
koniifer 2024-12-18 19:25:11 +00:00
parent 04d662ee42
commit 8cbf55a627
3 changed files with 6 additions and 6 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "hblang", "name": "hblang",
"version": "0.2.4", "version": "0.2.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "hblang", "name": "hblang",
"version": "0.2.4", "version": "0.2.5",
"devDependencies": { "devDependencies": {
"@types/vscode": "^1.75.0", "@types/vscode": "^1.75.0",
"os-browserify": "^0.3.0", "os-browserify": "^0.3.0",

View file

@ -6,7 +6,7 @@
"publisher": "koniifer", "publisher": "koniifer",
"displayName": "hblang", "displayName": "hblang",
"description": "Syntax highlighter and formatter for holey-bytes lang", "description": "Syntax highlighter and formatter for holey-bytes lang",
"version": "0.2.5", "version": "0.2.6",
"engines": { "engines": {
"vscode": "^1.75.0" "vscode": "^1.75.0"
}, },

View file

@ -116,7 +116,7 @@
"patterns": [ "patterns": [
{ {
"name": "keyword.control.hblang", "name": "keyword.control.hblang",
"match": "(?<!\\w)\\b(fn|loop|break|if|else|return|packed|continue|true|false|struct|idk|die|null|defer)\\b(?!\\w)" "match": "(?<!\\w)\\b(fn|loop|break|if|else|return|packed|continue|true|false|struct|idk|die|null|defer|union|enum|match)\\b(?!\\w)"
} }
] ]
}, },
@ -220,8 +220,8 @@
"patterns": [ "patterns": [
{ {
"name": "meta.array.initialization.hblang", "name": "meta.array.initialization.hblang",
"begin": "\\.\\(", "begin": "\\.\\(|{",
"end": "\\)", "end": "\\)|}",
"patterns": [ "patterns": [
{ {
"include": "#all" "include": "#all"