void/extensions/json/language-configuration.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

85 lines
1.1 KiB
JSON
Raw Permalink Normal View History

2024-09-11 02:37:36 +00:00
{
"comments": {
"lineComment": "//",
2025-03-01 02:01:53 +00:00
"blockComment": [
"/*",
"*/"
]
2024-09-11 02:37:36 +00:00
},
"brackets": [
2025-03-01 02:01:53 +00:00
[
"{",
"}"
],
[
"[",
"]"
]
2024-09-11 02:37:36 +00:00
],
"autoClosingPairs": [
2025-03-01 02:01:53 +00:00
{
"open": "{",
"close": "}",
"notIn": [
"string"
]
},
{
"open": "[",
"close": "]",
"notIn": [
"string"
]
},
{
"open": "(",
"close": ")",
"notIn": [
"string"
]
},
{
"open": "'",
"close": "'",
"notIn": [
"string"
]
},
{
"open": "\"",
"close": "\"",
"notIn": [
"string",
"comment"
]
},
{
"open": "`",
"close": "`",
"notIn": [
"string",
"comment"
]
}
2024-09-11 02:37:36 +00:00
],
"indentationRules": {
"increaseIndentPattern": "({+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"}]*)$)|(\\[+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"\\]]*)$)",
"decreaseIndentPattern": "^\\s*[}\\]],?\\s*$"
2025-03-01 02:01:53 +00:00
},
"onEnterRules": [
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"
},
"action": {
"indent": "none",
"appendText": "// "
}
},
]
2024-09-11 02:37:36 +00:00
}