aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/code/language-configuration.json38
-rw-r--r--editors/code/package.json11
2 files changed, 49 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}
diff --git a/editors/code/package.json b/editors/code/package.json
index ca5f2ebc8..160a62e46 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -734,6 +734,17 @@
734 "extensions": [ 734 "extensions": [
735 ".rast" 735 ".rast"
736 ] 736 ]
737 },
738 {
739 "id": "rust",
740 "extensions": [
741 ".rs"
742 ],
743 "aliases": [
744 "Rust",
745 "rs"
746 ],
747 "configuration": "language-configuration.json"
737 } 748 }
738 ], 749 ],
739 "grammars": [ 750 "grammars": [