-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlanguage-configuration.json
53 lines (53 loc) · 2.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
45
46
47
48
49
50
51
52
53
// Because multiple of these configs don't work in embedded languages
// Some of their respected config options will be brought into this file
{
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "\"comment\": \"\",",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [ "\"//\": {", "}" ]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [ // https://github.com/microsoft/vscode/issues/133397
["${", "}"],
["{", "}"],
["\\\\[:", ""],
["[:", ":]"],
["\\\\[", ""],
["[", "]"],
["\\\"", ""],
["\"", "\""],
["\\\\(", ""], // Disable auto closing when escaped
["(", ")"], // Fallback for `regex.language-configuration.json`
["(?'", "'"],
["(?(<", ">"],
["(?('", "'"],
["\\\\g<", ">"],
["\\\\g'", "'"],
["\\\\k<", ">"],
["\\\\k'", "'"]
],
"autoCloseBefore": "[]{}()|:,\\\" \n\t", // https://github.com/microsoft/vscode/issues/133397
// symbols that can be used to surround a selection
"surroundingPairs": [ // Doesn't work in embedded languages
["{", "}"],
["[", "]"],
["\"", "\""],
["(", ")"] // Fallback for `regex.language-configuration.json`
],
// symbols that can be colourized
"colorizedBracketPairs": [
["${", "}"],
["{", "}"],
["[", "]"],
["(", ")"]
],
// "wordPattern" doesn't support `atomic` groups or `possessive quantifiers`, leading to catastrophic backtracking. Workaround is to use a lookahead, named-group and backreference /(?=(?<name>)...)\\k<name>/
// "wordPattern" is used in reference for intellisense suggestion triggering, word highlighting and ctrl+hover definitions
"wordPattern": "(?<=(^|(?<!\\\\)[\\[\\]{}:,\t])\\s*)(?=(?<json>[\\w/$]+))\\k<json>(?=\\s*($|[\\[\\]{}:,\"\t](?!\\\\)))|(?<=(?<!\\\\)[\" (]-?|\\b[LR]:)(?=(?<string>[a-zA-Z./$][\\w./$-]*[\\w.]))\\k<string>(?=[\" )])|(?<=(?<!\\\\)\")(?=(?<include>[\\w.#$-]+))\\k<include>(?=\")"
}