31 lines
1 KiB
JSON
31 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" }
|
|
}
|
|
]
|
|
}
|