-
Notifications
You must be signed in to change notification settings - Fork 12
/
language-configuration.json
38 lines (37 loc) · 1.37 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
// Copyright (c) 2019 Rich J. Young
{
"comments": {
"lineComment": "--",
"blockComment": [ "/*", "*/" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
"autoCloseBefore": ";:,=])\n\t",
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
"wordPattern": "(?<!\\\\)\\b([0-9a-zA-Z]+[0-9a-zA-Z_]*)\\b(?!\\\\)|(\\\\([0-9a-zA-Z]+[0-9a-zA-Z_\\\\]*)\\\\)",
"indentationRules": {
"increaseIndentPattern": "^((?!(--|/\\*)).)*(\\b(begin|else|loop|generate|then)\\b|\\b(component|block|process|is|generic|port)\\b[^;]*$)",
// `^((?!(--|/\*)).)*` ignore any text in a comment
// `\b(begin|else|loop|generate|then)\b` increase indent on a line containing these keywords
// `\b(component|block|process|is|generic|port)\b[^;]*$` only increase indent a line containing these keywords if no `;` follows on the same line.
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*(elsif|else|end|begin)\\b",
// `^((?!.*?/\*).*\*/)??` ignore any text in a comment at the start of the line
// `\s*(elsif|else|end|begin)\b)` decrease indent on a line starting with these keywords
}
}