Skip to content

Commit 3fd97ca

Browse files
authored
feat: enable auto closing pairs (#18)
1 parent 8667df9 commit 3fd97ca

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

language-configuration.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,31 @@
99
["[", "]"],
1010
["(", ")"],
1111
],
12+
"colorizedBracketPairs": [
13+
["{", "}"],
14+
["[", "]"],
15+
["(", ")"]
16+
],
1217
// symbols that are auto closed when typing
1318
"autoClosingPairs": [
1419
{ "open": "{", "close": "}" },
1520
{ "open": "[", "close": "]" },
1621
{ "open": "(", "close": ")" },
1722
{ "open": "\"", "close": "\"", "notIn": ["string"] },
1823
{ "open": "'", "close": "'", "notIn": ["string"] },
24+
{ "open": "/*", "close": " */" }
1925
],
26+
"autoCloseBefore": ";:.,=}])> \n\t",
2027
// symbols that can be used to surround a selection
2128
"surroundingPairs": [
2229
["{", "}"],
2330
["[", "]"],
2431
["(", ")"],
2532
["'", "'"],
2633
["\"", "\""]
27-
]
34+
],
35+
"indentationRules": {
36+
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",
37+
"decreaseIndentPattern": "^\\s*(\\s*\\/[*].*[*]\\/\\s*)*[})]"
38+
}
2839
}

0 commit comments

Comments
 (0)