muddle/editors/vscode/language-configuration.json
2026-10-23 08:53:07 -04:00

27 lines
1 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/microsoft/vscode/master/src/vscode/language-configuration/_languages.schema.json",
"comments": { "lineComment": "//", "blockComment": ["/*", "*/"] },
"brackets": [["{", "}"], ["(", ")"], ["[", "]"]],
"autoClosingPairs": [
{ "open": "{", "close": "}", "notIn": ["string", "comment"] },
{ "open": "(", "close": ")", "notIn": ["string", "comment"] },
{ "open": "[", "close": "]", "notIn": ["string"] },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] }
],
"surroundingPairs": [
["{", "}"], ["(", ")"], ["[", "]"], ["'", "'"], ["\"", "\""]
],
"indentationRules": {
"increaseIndentPattern": "^\\s*(?:@\\w+[^;{]*)?[^{};]*\\{\\s*$|^(?:mixin|if|each|for|component)\\s+.*$",
"decreaseIndentPattern": "^\\s*\\}"
},
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\s\\w\\{\\}\\(\\)\\[\\]:;,\"']+)",
"onEnterRules": [
{
"beforeText": "\\{\\s*$",
"afterText": "^(\\s*\\}).*$",
"action": { "indent": "indentOutdent" }
}
]
}