directory organize and lexer now ignores comments

This commit is contained in:
2025-12-22 00:01:24 +08:00
parent 46a169b88a
commit 2e02960f03
15 changed files with 57 additions and 30 deletions

View File

@@ -0,0 +1,82 @@
{
"comments": {
"lineComment": "//",
"blockComment": [
"/*",
"*/"
]
},
"brackets": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"\"",
"\""
],
[
"/\"",
"\"/"
]
],
"autoClosingPairs": [
{
"open": "{",
"close": "}"
},
{
"open": "[",
"close": "]"
},
{
"open": "(",
"close": ")"
},
{
"open": "\"",
"close": "\"",
"notIn": [
"string"
]
},
{
"open": "/\"",
"close": "\"/"
}
],
"surroundingPairs": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"\"",
"\""
],
[
"/\"",
"\"/"
]
],
"indentationRules": {
"increaseIndentPattern": "^(?=.*(\\{|\\()|.*/\\\").*$",
"decreaseIndentPattern": "^\\s*[}\\)]|\\s*\"/"
}
}