@salesforcedevs/dx-components 1.18.8 → 1.18.9-scroll
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -5
- package/src/modules/dx/codeBlock/codeBlock.css +1 -10
- package/src/modules/dx/codeBlock/codeBlock.ts +1 -1
- package/src/modules/dx/toc/toc.css +17 -1
- package/src/modules/dx/toc/toc.html +17 -13
- package/src/modules/dx/toc/toc.ts +9 -0
- package/src/modules/dxUtils/shiki/shiki.ts +35 -53
- package/src/modules/dxUtils/shikiGrammars/shikiGrammars.html +3 -0
- package/src/modules/dxUtils/shikiGrammars/shikiGrammars.ts +2165 -0
- package/LICENSE +0 -12
- package/src/modules/dxUtils/shiki/customLanguages/afscript.tmLanguage.json +0 -855
- package/src/modules/dxUtils/shiki/customLanguages/ampscript.tmLanguage.json +0 -176
- package/src/modules/dxUtils/shiki/customLanguages/dataweave.tmLanguage.json +0 -1130
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2.0",
|
|
3
|
-
"name": "ampscript",
|
|
4
|
-
"scopeName": "text.html.amp",
|
|
5
|
-
"foldingStartMarker": "%%\\[\\s*$",
|
|
6
|
-
"foldingStopMarker": "^\\s*\\]%%$",
|
|
7
|
-
"injections": {
|
|
8
|
-
"R:comment.block,comment.block.html,meta.attribute": {
|
|
9
|
-
"patterns": [
|
|
10
|
-
{
|
|
11
|
-
"include": "#ampscript"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"include": "#ampscript-substitutions"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"patterns": [
|
|
20
|
-
{
|
|
21
|
-
"include": "#ampscript"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"include": "text.html.basic"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"repository": {
|
|
28
|
-
"ampscript": {
|
|
29
|
-
"name": "meta.embedded.amp",
|
|
30
|
-
"begin": "(%%[=\\[])",
|
|
31
|
-
"end": "([\\]=]%%)",
|
|
32
|
-
"beginCaptures": {
|
|
33
|
-
"1": {
|
|
34
|
-
"name": "keyword.other.namespace.amp"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"endCaptures": {
|
|
38
|
-
"1": {
|
|
39
|
-
"name": "keyword.other.namespace.amp"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"patterns": [
|
|
43
|
-
{
|
|
44
|
-
"include": "#ampscript-comments"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"include": "#ampscript-functions"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"include": "#ampscript-numeric"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"include": "#ampscript-contstants"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"include": "#ampscript-language-elements"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"include": "#ampscript-strings"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
"ampscript-comments": {
|
|
64
|
-
"patterns": [
|
|
65
|
-
{
|
|
66
|
-
"name": "comment.block.amp",
|
|
67
|
-
"begin": "/\\*",
|
|
68
|
-
"captures": {
|
|
69
|
-
"0": {
|
|
70
|
-
"name": "punctuation.definition.comment.amp"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"end": "\\*/"
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
"ampscript-functions": {
|
|
78
|
-
"name": "support.function.amp",
|
|
79
|
-
"match": "((?i:beginimpressionregion|endimpressionregion|beginassetblock|endassetblock|contentarea|contentareabyname|contentblockbyname|contentblockbyid|contentblockbykey|treatascontent|treatascontentarea|lookup|lookuprows|lookuprowscs|rowcount|row|field|now|datediff|dateparse|redirectto|random|add|subtract|multiply|divide|mod|concat|indexof|char|empty|propercase|substring|length|lowercase|uppercase|trim|regexmatch|replace|replacelist|format|iif|isnull|output|outputline|v|attributevalue)\\b)(?=\\()"
|
|
80
|
-
},
|
|
81
|
-
"ampscript-numeric": {
|
|
82
|
-
"name": "constant.numeric.amp",
|
|
83
|
-
"match": "\\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))\\b"
|
|
84
|
-
},
|
|
85
|
-
"ampscript-contstants": {
|
|
86
|
-
"patterns": [
|
|
87
|
-
{
|
|
88
|
-
"name": "constant.language.boolean.true.amp",
|
|
89
|
-
"match": "((?i:true)\\b)"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "constant.language.boolean.false.amp",
|
|
93
|
-
"match": "((?i:false)\\b)"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"name": "constant.language.boolean.null.amp",
|
|
97
|
-
"match": "((?i:null)\\b)"
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
},
|
|
101
|
-
"ampscript-language-elements": {
|
|
102
|
-
"patterns": [
|
|
103
|
-
{
|
|
104
|
-
"name": "keyword.control.amp",
|
|
105
|
-
"match": "((?i:do|else|elseif|for|if|endif|next|then|to|downto)\\b)"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"name": "storage.type.amp",
|
|
109
|
-
"match": "((?i:var|set)\\b)"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "variable.parameter.amp",
|
|
113
|
-
"match": "\\@[a-zA-Z0-9_]+"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"name": "variable.parameter.amp",
|
|
117
|
-
"match": "\\[[a-zA-Z0-9_]+\\]"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "support.class.amp",
|
|
121
|
-
"match": "((?i:and|or|not)\\b)"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"name": "variable.operator.amp",
|
|
125
|
-
"match": "==|!=|>|<|>=|<=|="
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
"ampscript-strings": {
|
|
130
|
-
"patterns": [
|
|
131
|
-
{
|
|
132
|
-
"name": "string.quoted.double.amp",
|
|
133
|
-
"begin": "\"",
|
|
134
|
-
"end": "\"",
|
|
135
|
-
"beginCaptures": {
|
|
136
|
-
"0": {
|
|
137
|
-
"name": "punctuation.definition.string.begin.amp"
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
"endCaptures": {
|
|
141
|
-
"0": {
|
|
142
|
-
"name": "punctuation.definition.string.end.amp"
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
"patterns": [
|
|
146
|
-
{
|
|
147
|
-
"name": "constant.character.escape.amp",
|
|
148
|
-
"match": "\"\""
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"name": "string.quoted.single.amp",
|
|
154
|
-
"begin": "'",
|
|
155
|
-
"end": "'",
|
|
156
|
-
"beginCaptures": {
|
|
157
|
-
"0": {
|
|
158
|
-
"name": "punctuation.definition.string.begin.amp"
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
"endCaptures": {
|
|
162
|
-
"0": {
|
|
163
|
-
"name": "punctuation.definition.string.end.amp"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"patterns": [
|
|
167
|
-
{
|
|
168
|
-
"name": "constant.character.escape.amp",
|
|
169
|
-
"match": "''"
|
|
170
|
-
}
|
|
171
|
-
]
|
|
172
|
-
}
|
|
173
|
-
]
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|