From cb7011ac463c5f00a4f3bf7e624e7e588b721171 Mon Sep 17 00:00:00 2001 From: koniifer Date: Sat, 21 Dec 2024 17:04:31 +0000 Subject: [PATCH] fixes & support new char & array syntaxes --- language-configuration.json | 4 ++-- package-lock.json | 4 ++-- package.json | 4 ++-- syntaxes/hblang.tmLanguage.json | 17 ++++++++++++----- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/language-configuration.json b/language-configuration.json index a7938ec..7902ced 100644 --- a/language-configuration.json +++ b/language-configuration.json @@ -73,7 +73,7 @@ } }, "indentationRules": { - "increaseIndentPattern": "\\{", - "decreaseIndentPattern": "^\\s*\\}" + "increaseIndentPattern": "{", + "decreaseIndentPattern": "\\s+}\\$" }, } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 16bda2a..1646534 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hblang", - "version": "0.2.5", + "version": "0.2.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hblang", - "version": "0.2.5", + "version": "0.2.7", "devDependencies": { "@types/vscode": "^1.75.0", "os-browserify": "^0.3.0", diff --git a/package.json b/package.json index c1dff77..619e93d 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ }, "publisher": "koniifer", "displayName": "hblang", - "description": "Syntax highlighter and formatter for holey-bytes lang", - "version": "0.2.6", + "description": "Syntax, formatting, and linting for holey-bytes lang", + "version": "0.2.7", "engines": { "vscode": "^1.75.0" }, diff --git a/syntaxes/hblang.tmLanguage.json b/syntaxes/hblang.tmLanguage.json index bc76229..847b30a 100644 --- a/syntaxes/hblang.tmLanguage.json +++ b/syntaxes/hblang.tmLanguage.json @@ -102,10 +102,17 @@ "patterns": [ { "name": "constant.character.escape.hblang", - "match": "\\\\(?:[\"'\\\\bfnrt]|[{\\[]\\w+[}\\]]|[a-zA-Z])" - }, + "match": "\\\\." + } + ] + }, + { + "name": "string.quoted.single.hblang", + "begin": "'", + "end": "'", + "patterns": [ { - "name": "invalid.illegal.escaped.hblang", + "name": "constant.character.escape.hblang", "match": "\\\\." } ] @@ -220,8 +227,8 @@ "patterns": [ { "name": "meta.array.initialization.hblang", - "begin": "\\.\\(|{", - "end": "\\)|}", + "begin": "\\.\\[", + "end": "\\]", "patterns": [ { "include": "#all"