-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlanguage-configuration.json
44 lines (44 loc) · 1.05 KB
/
language-configuration.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// guide: https://code.visualstudio.com/api/language-extensions/language-configuration-guide
{
"comments": {
"lineComment": "#",
"blockComment": ["#[", "]#"]
},
"brackets": [["{", "}"], ["[", "]"], ["(", ")"]],
"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "#[", "close": "]#", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["'", "'"],
["\"", "\""],
["|", "|"]
],
"onEnterRules": [
{
// indent at `:`, `=`, `->`, `=>`, `.`, `\`
"beforeText": "^\\s*.*?(?::|=|->|=>|\\.|\\\\)\\s*$",
"action": { "indent": "indent" }
},
{
// e.g. `#[|]#`, `#[|` (`|` is the cursor)
"beforeText": {
"pattern": "^\\s*.*#\\[.*$"
},
// If this is present, it is indented. e.g. `#[|`
// "afterText": {
// "pattern": "^\\s*.*\\]#.*$"
// },
"action": {
"indent": "none"
}
}
]
}