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