mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +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"
|
||
|
}
|
||
|
}
|
||
|
}
|