fixes & support new char & array syntaxes

This commit is contained in:
koniifer 2024-12-21 17:04:31 +00:00
parent 8cbf55a627
commit cb7011ac46
4 changed files with 18 additions and 11 deletions

View file

@ -73,7 +73,7 @@
}
},
"indentationRules": {
"increaseIndentPattern": "\\{",
"decreaseIndentPattern": "^\\s*\\}"
"increaseIndentPattern": "{",
"decreaseIndentPattern": "\\s+}\\$"
},
}

4
package-lock.json generated
View file

@ -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",

View file

@ -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"
},

View file

@ -102,10 +102,17 @@
"patterns": [
{
"name": "constant.character.escape.hblang",
"match": "\\\\(?:[\"'\\\\bfnrt]|[{\\[]\\w+[}\\]]|[a-zA-Z])"
"match": "\\\\."
}
]
},
{
"name": "invalid.illegal.escaped.hblang",
"name": "string.quoted.single.hblang",
"begin": "'",
"end": "'",
"patterns": [
{
"name": "constant.character.escape.hblang",
"match": "\\\\."
}
]
@ -220,8 +227,8 @@
"patterns": [
{
"name": "meta.array.initialization.hblang",
"begin": "\\.\\(|{",
"end": "\\)|}",
"begin": "\\.\\[",
"end": "\\]",
"patterns": [
{
"include": "#all"