Skip to content

Commit 368a140

Browse files
authored
imp. capture stack
1 parent fe00753 commit 368a140

File tree

1 file changed

+80
-26
lines changed

1 file changed

+80
-26
lines changed

language-configuration.json

Lines changed: 80 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,88 @@
22
"comments": {
33
"lineComment": "//",
44
"blockComment": ["/*", "*/"]
5-
},
5+
},
66
"brackets": [
7-
["{", "}"],
8-
["[", "]"],
9-
["(", ")"]
10-
],
7+
["{", "}"],
8+
["[", "]"],
9+
["(", ")"]
10+
],
1111
"autoCloseBefore": ", \n\t",
1212
"autoClosingPairs": [
13-
{ "open": "{", "close": "}" },
14-
{ "open": "[", "close": "]" },
15-
{ "open": "(", "close": ")" },
16-
{ "open": "/**", "close": " */", "notIn": ["string"] }
17-
],
18-
"surroundingPairs": [
19-
["{", "}"],
20-
["[", "]"],
21-
["(", ")"]
22-
],
13+
{ "open": "{", "close": "}" },
14+
{ "open": "[", "close": "]" },
15+
{ "open": "(", "close": ")" },
16+
{
17+
"open": "'",
18+
"close": "'",
19+
"notIn": ["string", "comment"]
20+
},
21+
{
22+
"open": "\"",
23+
"close": "\"",
24+
"notIn": ["string"]
25+
},
26+
{ "open": "/**", "close": " */", "notIn": ["string"] }
27+
],
28+
"surroundingPairs": [
29+
["{", "}"],
30+
["[", "]"],
31+
["(", ")"]
32+
],
2333
"indentationRules": {
24-
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$",
25-
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$"
26-
},
27-
"colorizedBracketPairs": [
28-
["(", ")"],
29-
["${", "}"],
30-
["{", "}"],
31-
["[:", ":]"],
32-
["[", "]"],
33-
["<", ">"]
34-
]
34+
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$",
35+
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$"
36+
},
37+
"colorizedBracketPairs": [
38+
["(", ")"],
39+
["${", "}"],
40+
["{", "}"],
41+
["[:", ":]"],
42+
["[", "]"],
43+
["<", ">"]
44+
],
45+
"onEnterRules": [
46+
{
47+
"beforeText": {
48+
"pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
49+
},
50+
"afterText": {
51+
"pattern": "^\\s*\\*/$"
52+
},
53+
"action": {
54+
"indent": "indentOutdent",
55+
"appendText": " * "
56+
}
57+
},
58+
{
59+
"beforeText": {
60+
"pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
61+
},
62+
"action": {
63+
"indent": "none",
64+
"appendText": " * "
65+
}
66+
},
67+
{
68+
"beforeText": {
69+
"pattern": "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
70+
},
71+
"previousLineText": {
72+
"pattern": "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))"
73+
},
74+
"action": {
75+
"indent": "none",
76+
"appendText": "* "
77+
}
78+
},
79+
{
80+
"beforeText": {
81+
"pattern": "^(\\t|[ ])*[ ]\\*/\\s*$"
82+
},
83+
"action": {
84+
"indent": "none",
85+
"removeText": 1
86+
}
87+
}
88+
]
3589
}

0 commit comments

Comments
 (0)