Add language configuration

This commit is contained in:
Sofia 2025-08-03 15:52:12 +03:00
parent c7f1b81c9d
commit dbc43f51ee
2 changed files with 80 additions and 4 deletions

View File

@ -0,0 +1,78 @@
{
"comments": {
"lineComment": "//",
},
"brackets": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
]
],
"autoClosingPairs": [
{
"open": "{",
"close": "}"
},
{
"open": "[",
"close": "]"
},
{
"open": "(",
"close": ")"
},
{
"open": "'",
"close": "'",
"notIn": [
"string",
"comment"
]
},
{
"open": "\"",
"close": "\"",
"notIn": [
"string"
]
},
],
"autoCloseBefore": ";:.,=}])>` \n\t",
"surroundingPairs": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"\"",
"\""
],
],
"folding": {
"markers": {
"start": "^\\s*//\\s*#?region\\b",
"end": "^\\s*//\\s*#?endregion\\b"
}
},
"wordPattern": "[a-Z](\\w*)",
"indentationRules": {
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$",
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$"
}
}

View File

@ -12,9 +12,6 @@
"categories": [ "categories": [
"Other" "Other"
], ],
"activationEvents": [
"onLanguage:reid"
],
"main": "./dist/extension.js", "main": "./dist/extension.js",
"contributes": { "contributes": {
"languages": [ "languages": [
@ -25,7 +22,8 @@
], ],
"aliases": [ "aliases": [
"Reid" "Reid"
] ],
"configuration": "./language-configuration.json"
} }
], ],
"configuration": { "configuration": {