mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
39 lines
970 B
JSON
39 lines
970 B
JSON
|
{
|
||
|
"comments": {
|
||
|
"lineComment": "//",
|
||
|
"blockComment": [ "/*", "*/" ]
|
||
|
},
|
||
|
"brackets": [
|
||
|
["{", "}"],
|
||
|
["[", "]"],
|
||
|
["(", ")"],
|
||
|
["<", ">"]
|
||
|
],
|
||
|
"autoClosingPairs": [
|
||
|
{ "open": "{", "close": "}" },
|
||
|
{ "open": "[", "close": "]" },
|
||
|
{ "open": "(", "close": ")" },
|
||
|
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
||
|
{ "open": "/*", "close": " */" }
|
||
|
],
|
||
|
"autoCloseBefore": ";:.,=}])> \n\t",
|
||
|
"surroundingPairs": [
|
||
|
["{", "}"],
|
||
|
["[", "]"],
|
||
|
["(", ")"],
|
||
|
["<", ">"],
|
||
|
["\"", "\""],
|
||
|
["'", "'"]
|
||
|
],
|
||
|
"indentationRules": {
|
||
|
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",
|
||
|
"decreaseIndentPattern": "^\\s*(\\s*\\/[*].*[*]\\/\\s*)*[})]"
|
||
|
},
|
||
|
"folding": {
|
||
|
"markers": {
|
||
|
"start": "^\\s*//\\s*#?region\\b",
|
||
|
"end": "^\\s*//\\s*#?endregion\\b"
|
||
|
}
|
||
|
}
|
||
|
}
|