]> git.lizzy.rs Git - rust.git/blob - editors/code/language-configuration.json
Merge #11310
[rust.git] / editors / code / language-configuration.json
1 {
2     "comments": {
3         "lineComment": "//",
4         "blockComment": [ "/*", "*/" ]
5     },
6     "brackets": [
7         ["{", "}"],
8         ["[", "]"],
9         ["(", ")"],
10         ["<", ">"]
11     ],
12     "colorizedBracketPairs": [
13                 ["{", "}"],
14                 ["[", "]"],
15                 ["(", ")"]
16         ],
17     "autoClosingPairs": [
18         { "open": "{", "close": "}" },
19         { "open": "[", "close": "]" },
20         { "open": "(", "close": ")" },
21         { "open": "\"", "close": "\"", "notIn": ["string"] },
22         { "open": "/*", "close": " */" }
23     ],
24     "autoCloseBefore": ";:.,=}])> \n\t",
25     "surroundingPairs": [
26         ["{", "}"],
27         ["[", "]"],
28         ["(", ")"],
29         ["<", ">"],
30         ["\"", "\""],
31         ["'", "'"]
32     ],
33     "indentationRules": {
34         "increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",
35         "decreaseIndentPattern": "^\\s*(\\s*\\/[*].*[*]\\/\\s*)*[})]"
36     },
37     "folding": {
38         "markers": {
39             "start": "^\\s*//\\s*#?region\\b",
40             "end": "^\\s*//\\s*#?endregion\\b"
41         }
42     }
43 }