Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/less/language-configuration.json
3290 views
1
{
2
"comments": {
3
"blockComment": [
4
"/*",
5
"*/"
6
],
7
"lineComment": "//"
8
},
9
"brackets": [
10
[
11
"{",
12
"}"
13
],
14
[
15
"[",
16
"]"
17
],
18
[
19
"(",
20
")"
21
]
22
],
23
"autoClosingPairs": [
24
{
25
"open": "{",
26
"close": "}",
27
"notIn": [
28
"string",
29
"comment"
30
]
31
},
32
{
33
"open": "[",
34
"close": "]",
35
"notIn": [
36
"string",
37
"comment"
38
]
39
},
40
{
41
"open": "(",
42
"close": ")",
43
"notIn": [
44
"string",
45
"comment"
46
]
47
},
48
{
49
"open": "\"",
50
"close": "\"",
51
"notIn": [
52
"string",
53
"comment"
54
]
55
},
56
{
57
"open": "'",
58
"close": "'",
59
"notIn": [
60
"string",
61
"comment"
62
]
63
}
64
],
65
"surroundingPairs": [
66
[
67
"{",
68
"}"
69
],
70
[
71
"[",
72
"]"
73
],
74
[
75
"(",
76
")"
77
],
78
[
79
"\"",
80
"\""
81
],
82
[
83
"'",
84
"'"
85
]
86
],
87
"folding": {
88
"markers": {
89
"start": "^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/",
90
"end": "^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/"
91
}
92
},
93
"indentationRules": {
94
"increaseIndentPattern": "(^.*\\{[^}]*$)",
95
"decreaseIndentPattern": "^\\s*\\}"
96
},
97
"wordPattern": "(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]+(?=[^,{;]*[,{]))|(([@#.!])?[\\w-?]+%?|[@#!.])",
98
"onEnterRules": [
99
// Add // when pressing enter from inside line comment
100
{
101
"beforeText": {
102
"pattern": "\/\/.*"
103
},
104
"afterText": {
105
"pattern": "^(?!\\s*$).+"
106
},
107
"action": {
108
"indent": "none",
109
"appendText": "// "
110
}
111
},
112
]
113
}
114
115