diff options
author | Dusty Pomerleau <[email protected]> | 2020-12-12 00:31:00 +0000 |
---|---|---|
committer | Dusty Pomerleau <[email protected]> | 2020-12-13 08:31:11 +0000 |
commit | 612be092826ad6654fd7f8a337c49a39754e9293 (patch) | |
tree | f45ca3c4a05b2590a0d12ea349fa02bcc1b7bba3 /editors/code/language-configuration.json | |
parent | a15d19619e097b14b670064a4edc054a4251f479 (diff) |
add a language configuration for VS Code
Diffstat (limited to 'editors/code/language-configuration.json')
-rw-r--r-- | editors/code/language-configuration.json | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/editors/code/language-configuration.json b/editors/code/language-configuration.json new file mode 100644 index 000000000..b20e0d978 --- /dev/null +++ b/editors/code/language-configuration.json | |||
@@ -0,0 +1,38 @@ | |||
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 | "indentationRules": { | ||
29 | "increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$", | ||
30 | "decreaseIndentPattern": "^\\s*(\\s*\\/[*].*[*]\\/\\s*)*[})]" | ||
31 | }, | ||
32 | "folding": { | ||
33 | "markers": { | ||
34 | "start": "^\\s*//\\s*#?region\\b", | ||
35 | "end": "^\\s*//\\s*#?endregion\\b" | ||
36 | } | ||
37 | } | ||
38 | } | ||