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"