@kong-ui-public/monaco-editor 0.3.0 → 0.3.1-pr.2622.ca1f578c8.0
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 +1 -1
- package/dist/abap-CrvW7_qN.js +0 -1398
- package/dist/apex-BAOI8p1v.js +0 -327
- package/dist/assets/css.worker-Cb0JI69t.js +0 -93
- package/dist/assets/editor.worker-DzMH9hFo.js +0 -26
- package/dist/assets/html.worker-BNFZMwEc.js +0 -470
- package/dist/assets/json.worker-BCybXpia.js +0 -58
- package/dist/assets/ts.worker-DAVh1bw1.js +0 -67731
- package/dist/azcli-BlCk_UqW.js +0 -68
- package/dist/bat-DPoEelVx.js +0 -100
- package/dist/bicep-Cp1F394l.js +0 -102
- package/dist/cameligo-CWqtSlQs.js +0 -174
- package/dist/clojure-CKBp32Gf.js +0 -761
- package/dist/coffee-CDo6vc-J.js +0 -232
- package/dist/cpp-DokufPgf.js +0 -389
- package/dist/csharp-BQi3szM0.js +0 -326
- package/dist/csp-BSGtCCZ-.js +0 -53
- package/dist/css-DEPFDJfb.js +0 -187
- package/dist/cssMode-BoaW_8EY.js +0 -141
- package/dist/cypher-DAb1vOxS.js +0 -263
- package/dist/dart-C8p4jewR.js +0 -281
- package/dist/dockerfile-DP0iLFPN.js +0 -130
- package/dist/ecl-BDQHA6fi.js +0 -456
- package/dist/elixir-D4II6kDM.js +0 -569
- package/dist/flow9-StcnL-VB.js +0 -142
- package/dist/freemarker2-DLxAEbra.js +0 -982
- package/dist/fsharp-DdUVp3EN.js +0 -217
- package/dist/go-D1-I258M.js +0 -218
- package/dist/graphql-DWkL3f8U.js +0 -151
- package/dist/handlebars-H1fAc7pY.js +0 -412
- package/dist/hcl-D_0MNifv.js +0 -183
- package/dist/html-Bjh5RSoV.js +0 -301
- package/dist/htmlMode-XE4-FvOp.js +0 -152
- package/dist/index-BtAApC8Z.js +0 -129109
- package/dist/ini-C4I2-MT7.js +0 -71
- package/dist/java-OBvaP_SS.js +0 -232
- package/dist/javascript-BL-y8a3N.js +0 -70
- package/dist/jsonMode-BO164Oml.js +0 -569
- package/dist/julia-BmDH8Kkf.js +0 -511
- package/dist/kotlin-Dhu5AGOD.js +0 -252
- package/dist/less-CzmjXREq.js +0 -162
- package/dist/lexon-CV2c4pN9.js +0 -157
- package/dist/liquid-B4OW2xCW.js +0 -233
- package/dist/lspLanguageFeatures-CLOLvtro.js +0 -1458
- package/dist/lua-CFY5U8qF.js +0 -162
- package/dist/m3-BL_AnZVh.js +0 -210
- package/dist/markdown-CWKQPXCv.js +0 -229
- package/dist/mdx-BscoYQtT.js +0 -158
- package/dist/mips-ButYmJ5E.js +0 -198
- package/dist/monaco-editor.es.js +0 -5
- package/dist/monaco-editor.umd.js +0 -1234
- package/dist/msdax-C3cnXqDh.js +0 -375
- package/dist/mysql-YlSHaf6G.js +0 -878
- package/dist/objective-c-Dwnlproe.js +0 -183
- package/dist/pascal-UzGbSWEN.js +0 -251
- package/dist/pascaligo-CslTgu68.js +0 -164
- package/dist/perl-oj6r_mgw.js +0 -626
- package/dist/pgsql-DSBO0Mev.js +0 -851
- package/dist/php-YzCD--7j.js +0 -500
- package/dist/pla-CmylB8vQ.js +0 -137
- package/dist/postiats-CLFW5gNY.js +0 -907
- package/dist/powerquery-CmOWUvlh.js +0 -890
- package/dist/powershell-fHQcmBLK.js +0 -239
- package/dist/protobuf-p5BArb-9.js +0 -420
- package/dist/pug-gVdUDvqf.js +0 -402
- package/dist/python-CdwN88xa.js +0 -294
- package/dist/qsharp-DnrWSUlt.js +0 -301
- package/dist/r-Cv309K2z.js +0 -243
- package/dist/razor-BzIEQn-i.js +0 -543
- package/dist/redis-DTcS4wMj.js +0 -302
- package/dist/redshift-hLxZVESM.js +0 -809
- package/dist/restructuredtext-C898lK4f.js +0 -174
- package/dist/ruby-CgKtnJIQ.js +0 -511
- package/dist/rust-bj8oxVnh.js +0 -343
- package/dist/sb-DWynz26l.js +0 -115
- package/dist/scala-BL5z1UEd.js +0 -370
- package/dist/scheme-DUJsH6VU.js +0 -108
- package/dist/scss-CxjmhvaL.js +0 -262
- package/dist/shell-D14Zs1dF.js +0 -221
- package/dist/solidity-WyRm-BGK.js +0 -1367
- package/dist/sophia-CKk-_Oa5.js +0 -199
- package/dist/sparql-DHtmINMZ.js +0 -201
- package/dist/sql-Dqaj5JHC.js +0 -853
- package/dist/st-Bj2IIaop.js +0 -416
- package/dist/style.css +0 -1
- package/dist/swift-DwxP72iM.js +0 -312
- package/dist/systemverilog-D7wJfuql.js +0 -576
- package/dist/tcl-0ApMt-eC.js +0 -232
- package/dist/tsMode-Bm7Ao8a0.js +0 -946
- package/dist/twig-DxwbdmvQ.js +0 -392
- package/dist/types/components/MonacoEditor.vue.d.ts +0 -52
- package/dist/types/components/MonacoEditor.vue.d.ts.map +0 -1
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts +0 -19
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/composables/useMonacoEditor.d.ts +0 -25
- package/dist/types/composables/useMonacoEditor.d.ts.map +0 -1
- package/dist/types/constants/index.d.ts +0 -3
- package/dist/types/constants/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +0 -2
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -69
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/typescript-xVL7xVgf.js +0 -336
- package/dist/typespec-Fd-JwSuS.js +0 -117
- package/dist/vb-CxuyYE1I.js +0 -372
- package/dist/wgsl-DoEGc31J.js +0 -439
- package/dist/xml-5AZvXygb.js +0 -88
- package/dist/yaml-BpKYQQZ4.js +0 -199
package/dist/cypher-DAb1vOxS.js
DELETED
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
comments: {
|
|
3
|
-
lineComment: "//",
|
|
4
|
-
blockComment: ["/*", "*/"]
|
|
5
|
-
},
|
|
6
|
-
brackets: [
|
|
7
|
-
["{", "}"],
|
|
8
|
-
["[", "]"],
|
|
9
|
-
["(", ")"]
|
|
10
|
-
],
|
|
11
|
-
autoClosingPairs: [
|
|
12
|
-
{ open: "{", close: "}" },
|
|
13
|
-
{ open: "[", close: "]" },
|
|
14
|
-
{ open: "(", close: ")" },
|
|
15
|
-
{ open: '"', close: '"' },
|
|
16
|
-
{ open: "'", close: "'" },
|
|
17
|
-
{ open: "`", close: "`" }
|
|
18
|
-
],
|
|
19
|
-
surroundingPairs: [
|
|
20
|
-
{ open: "{", close: "}" },
|
|
21
|
-
{ open: "[", close: "]" },
|
|
22
|
-
{ open: "(", close: ")" },
|
|
23
|
-
{ open: '"', close: '"' },
|
|
24
|
-
{ open: "'", close: "'" },
|
|
25
|
-
{ open: "`", close: "`" }
|
|
26
|
-
]
|
|
27
|
-
}, i = {
|
|
28
|
-
defaultToken: "",
|
|
29
|
-
tokenPostfix: ".cypher",
|
|
30
|
-
ignoreCase: !0,
|
|
31
|
-
brackets: [
|
|
32
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
33
|
-
{ open: "[", close: "]", token: "delimiter.bracket" },
|
|
34
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
35
|
-
],
|
|
36
|
-
keywords: [
|
|
37
|
-
"ALL",
|
|
38
|
-
"AND",
|
|
39
|
-
"AS",
|
|
40
|
-
"ASC",
|
|
41
|
-
"ASCENDING",
|
|
42
|
-
"BY",
|
|
43
|
-
"CALL",
|
|
44
|
-
"CASE",
|
|
45
|
-
"CONTAINS",
|
|
46
|
-
"CREATE",
|
|
47
|
-
"DELETE",
|
|
48
|
-
"DESC",
|
|
49
|
-
"DESCENDING",
|
|
50
|
-
"DETACH",
|
|
51
|
-
"DISTINCT",
|
|
52
|
-
"ELSE",
|
|
53
|
-
"END",
|
|
54
|
-
"ENDS",
|
|
55
|
-
"EXISTS",
|
|
56
|
-
"IN",
|
|
57
|
-
"IS",
|
|
58
|
-
"LIMIT",
|
|
59
|
-
"MANDATORY",
|
|
60
|
-
"MATCH",
|
|
61
|
-
"MERGE",
|
|
62
|
-
"NOT",
|
|
63
|
-
"ON",
|
|
64
|
-
"ON",
|
|
65
|
-
"OPTIONAL",
|
|
66
|
-
"OR",
|
|
67
|
-
"ORDER",
|
|
68
|
-
"REMOVE",
|
|
69
|
-
"RETURN",
|
|
70
|
-
"SET",
|
|
71
|
-
"SKIP",
|
|
72
|
-
"STARTS",
|
|
73
|
-
"THEN",
|
|
74
|
-
"UNION",
|
|
75
|
-
"UNWIND",
|
|
76
|
-
"WHEN",
|
|
77
|
-
"WHERE",
|
|
78
|
-
"WITH",
|
|
79
|
-
"XOR",
|
|
80
|
-
"YIELD"
|
|
81
|
-
],
|
|
82
|
-
builtinLiterals: ["true", "TRUE", "false", "FALSE", "null", "NULL"],
|
|
83
|
-
builtinFunctions: [
|
|
84
|
-
"abs",
|
|
85
|
-
"acos",
|
|
86
|
-
"asin",
|
|
87
|
-
"atan",
|
|
88
|
-
"atan2",
|
|
89
|
-
"avg",
|
|
90
|
-
"ceil",
|
|
91
|
-
"coalesce",
|
|
92
|
-
"collect",
|
|
93
|
-
"cos",
|
|
94
|
-
"cot",
|
|
95
|
-
"count",
|
|
96
|
-
"degrees",
|
|
97
|
-
"e",
|
|
98
|
-
"endNode",
|
|
99
|
-
"exists",
|
|
100
|
-
"exp",
|
|
101
|
-
"floor",
|
|
102
|
-
"head",
|
|
103
|
-
"id",
|
|
104
|
-
"keys",
|
|
105
|
-
"labels",
|
|
106
|
-
"last",
|
|
107
|
-
"left",
|
|
108
|
-
"length",
|
|
109
|
-
"log",
|
|
110
|
-
"log10",
|
|
111
|
-
"lTrim",
|
|
112
|
-
"max",
|
|
113
|
-
"min",
|
|
114
|
-
"nodes",
|
|
115
|
-
"percentileCont",
|
|
116
|
-
"percentileDisc",
|
|
117
|
-
"pi",
|
|
118
|
-
"properties",
|
|
119
|
-
"radians",
|
|
120
|
-
"rand",
|
|
121
|
-
"range",
|
|
122
|
-
"relationships",
|
|
123
|
-
"replace",
|
|
124
|
-
"reverse",
|
|
125
|
-
"right",
|
|
126
|
-
"round",
|
|
127
|
-
"rTrim",
|
|
128
|
-
"sign",
|
|
129
|
-
"sin",
|
|
130
|
-
"size",
|
|
131
|
-
"split",
|
|
132
|
-
"sqrt",
|
|
133
|
-
"startNode",
|
|
134
|
-
"stDev",
|
|
135
|
-
"stDevP",
|
|
136
|
-
"substring",
|
|
137
|
-
"sum",
|
|
138
|
-
"tail",
|
|
139
|
-
"tan",
|
|
140
|
-
"timestamp",
|
|
141
|
-
"toBoolean",
|
|
142
|
-
"toFloat",
|
|
143
|
-
"toInteger",
|
|
144
|
-
"toLower",
|
|
145
|
-
"toString",
|
|
146
|
-
"toUpper",
|
|
147
|
-
"trim",
|
|
148
|
-
"type"
|
|
149
|
-
],
|
|
150
|
-
operators: [
|
|
151
|
-
// Math operators
|
|
152
|
-
"+",
|
|
153
|
-
"-",
|
|
154
|
-
"*",
|
|
155
|
-
"/",
|
|
156
|
-
"%",
|
|
157
|
-
"^",
|
|
158
|
-
// Comparison operators
|
|
159
|
-
"=",
|
|
160
|
-
"<>",
|
|
161
|
-
"<",
|
|
162
|
-
">",
|
|
163
|
-
"<=",
|
|
164
|
-
">=",
|
|
165
|
-
// Pattern operators
|
|
166
|
-
"->",
|
|
167
|
-
"<-",
|
|
168
|
-
"-->",
|
|
169
|
-
"<--"
|
|
170
|
-
],
|
|
171
|
-
escapes: /\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
172
|
-
digits: /\d+/,
|
|
173
|
-
octaldigits: /[0-7]+/,
|
|
174
|
-
hexdigits: /[0-9a-fA-F]+/,
|
|
175
|
-
tokenizer: {
|
|
176
|
-
root: [[/[{}[\]()]/, "@brackets"], { include: "common" }],
|
|
177
|
-
common: [
|
|
178
|
-
{ include: "@whitespace" },
|
|
179
|
-
{ include: "@numbers" },
|
|
180
|
-
{ include: "@strings" },
|
|
181
|
-
// Cypher labels on nodes/relationships, e.g. (n:NodeLabel)-[e:RelationshipLabel]
|
|
182
|
-
[/:[a-zA-Z_][\w]*/, "type.identifier"],
|
|
183
|
-
[
|
|
184
|
-
/[a-zA-Z_][\w]*(?=\()/,
|
|
185
|
-
{
|
|
186
|
-
cases: {
|
|
187
|
-
"@builtinFunctions": "predefined.function"
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
],
|
|
191
|
-
[
|
|
192
|
-
/[a-zA-Z_$][\w$]*/,
|
|
193
|
-
{
|
|
194
|
-
cases: {
|
|
195
|
-
"@keywords": "keyword",
|
|
196
|
-
"@builtinLiterals": "predefined.literal",
|
|
197
|
-
"@default": "identifier"
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
[/`/, "identifier.escape", "@identifierBacktick"],
|
|
202
|
-
// delimiter and operator after number because of `.\d` floats and `:` in labels
|
|
203
|
-
[/[;,.:|]/, "delimiter"],
|
|
204
|
-
[
|
|
205
|
-
/[<>=%+\-*/^]+/,
|
|
206
|
-
{
|
|
207
|
-
cases: {
|
|
208
|
-
"@operators": "delimiter",
|
|
209
|
-
"@default": ""
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
]
|
|
213
|
-
],
|
|
214
|
-
numbers: [
|
|
215
|
-
[/-?(@digits)[eE](-?(@digits))?/, "number.float"],
|
|
216
|
-
[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/, "number.float"],
|
|
217
|
-
[/-?0x(@hexdigits)/, "number.hex"],
|
|
218
|
-
[/-?0(@octaldigits)/, "number.octal"],
|
|
219
|
-
[/-?(@digits)/, "number"]
|
|
220
|
-
],
|
|
221
|
-
strings: [
|
|
222
|
-
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
223
|
-
// non-teminated string
|
|
224
|
-
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
225
|
-
// non-teminated string
|
|
226
|
-
[/"/, "string", "@stringDouble"],
|
|
227
|
-
[/'/, "string", "@stringSingle"]
|
|
228
|
-
],
|
|
229
|
-
whitespace: [
|
|
230
|
-
[/[ \t\r\n]+/, "white"],
|
|
231
|
-
[/\/\*/, "comment", "@comment"],
|
|
232
|
-
[/\/\/.*$/, "comment"]
|
|
233
|
-
],
|
|
234
|
-
comment: [
|
|
235
|
-
[/\/\/.*/, "comment"],
|
|
236
|
-
[/[^/*]+/, "comment"],
|
|
237
|
-
[/\*\//, "comment", "@pop"],
|
|
238
|
-
[/[/*]/, "comment"]
|
|
239
|
-
],
|
|
240
|
-
stringDouble: [
|
|
241
|
-
[/[^\\"]+/, "string"],
|
|
242
|
-
[/@escapes/, "string"],
|
|
243
|
-
[/\\./, "string.invalid"],
|
|
244
|
-
[/"/, "string", "@pop"]
|
|
245
|
-
],
|
|
246
|
-
stringSingle: [
|
|
247
|
-
[/[^\\']+/, "string"],
|
|
248
|
-
[/@escapes/, "string"],
|
|
249
|
-
[/\\./, "string.invalid"],
|
|
250
|
-
[/'/, "string", "@pop"]
|
|
251
|
-
],
|
|
252
|
-
identifierBacktick: [
|
|
253
|
-
[/[^\\`]+/, "identifier.escape"],
|
|
254
|
-
[/@escapes/, "identifier.escape"],
|
|
255
|
-
[/\\./, "identifier.escape.invalid"],
|
|
256
|
-
[/`/, "identifier.escape", "@pop"]
|
|
257
|
-
]
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
export {
|
|
261
|
-
e as conf,
|
|
262
|
-
i as language
|
|
263
|
-
};
|
package/dist/dart-C8p4jewR.js
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
comments: {
|
|
3
|
-
lineComment: "//",
|
|
4
|
-
blockComment: ["/*", "*/"]
|
|
5
|
-
},
|
|
6
|
-
brackets: [
|
|
7
|
-
["{", "}"],
|
|
8
|
-
["[", "]"],
|
|
9
|
-
["(", ")"]
|
|
10
|
-
],
|
|
11
|
-
autoClosingPairs: [
|
|
12
|
-
{ open: "{", close: "}" },
|
|
13
|
-
{ open: "[", close: "]" },
|
|
14
|
-
{ open: "(", close: ")" },
|
|
15
|
-
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
16
|
-
{ open: '"', close: '"', notIn: ["string"] },
|
|
17
|
-
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
|
18
|
-
{ open: "/**", close: " */", notIn: ["string"] }
|
|
19
|
-
],
|
|
20
|
-
surroundingPairs: [
|
|
21
|
-
{ open: "{", close: "}" },
|
|
22
|
-
{ open: "[", close: "]" },
|
|
23
|
-
{ open: "(", close: ")" },
|
|
24
|
-
{ open: "<", close: ">" },
|
|
25
|
-
{ open: "'", close: "'" },
|
|
26
|
-
{ open: "(", close: ")" },
|
|
27
|
-
{ open: '"', close: '"' },
|
|
28
|
-
{ open: "`", close: "`" }
|
|
29
|
-
],
|
|
30
|
-
folding: {
|
|
31
|
-
markers: {
|
|
32
|
-
start: /^\s*\s*#?region\b/,
|
|
33
|
-
end: /^\s*\s*#?endregion\b/
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}, n = {
|
|
37
|
-
defaultToken: "invalid",
|
|
38
|
-
tokenPostfix: ".dart",
|
|
39
|
-
keywords: [
|
|
40
|
-
"abstract",
|
|
41
|
-
"dynamic",
|
|
42
|
-
"implements",
|
|
43
|
-
"show",
|
|
44
|
-
"as",
|
|
45
|
-
"else",
|
|
46
|
-
"import",
|
|
47
|
-
"static",
|
|
48
|
-
"assert",
|
|
49
|
-
"enum",
|
|
50
|
-
"in",
|
|
51
|
-
"super",
|
|
52
|
-
"async",
|
|
53
|
-
"export",
|
|
54
|
-
"interface",
|
|
55
|
-
"switch",
|
|
56
|
-
"await",
|
|
57
|
-
"extends",
|
|
58
|
-
"is",
|
|
59
|
-
"sync",
|
|
60
|
-
"break",
|
|
61
|
-
"external",
|
|
62
|
-
"library",
|
|
63
|
-
"this",
|
|
64
|
-
"case",
|
|
65
|
-
"factory",
|
|
66
|
-
"mixin",
|
|
67
|
-
"throw",
|
|
68
|
-
"catch",
|
|
69
|
-
"false",
|
|
70
|
-
"new",
|
|
71
|
-
"true",
|
|
72
|
-
"class",
|
|
73
|
-
"final",
|
|
74
|
-
"null",
|
|
75
|
-
"try",
|
|
76
|
-
"const",
|
|
77
|
-
"finally",
|
|
78
|
-
"on",
|
|
79
|
-
"typedef",
|
|
80
|
-
"continue",
|
|
81
|
-
"for",
|
|
82
|
-
"operator",
|
|
83
|
-
"var",
|
|
84
|
-
"covariant",
|
|
85
|
-
"Function",
|
|
86
|
-
"part",
|
|
87
|
-
"void",
|
|
88
|
-
"default",
|
|
89
|
-
"get",
|
|
90
|
-
"rethrow",
|
|
91
|
-
"while",
|
|
92
|
-
"deferred",
|
|
93
|
-
"hide",
|
|
94
|
-
"return",
|
|
95
|
-
"with",
|
|
96
|
-
"do",
|
|
97
|
-
"if",
|
|
98
|
-
"set",
|
|
99
|
-
"yield"
|
|
100
|
-
],
|
|
101
|
-
typeKeywords: ["int", "double", "String", "bool"],
|
|
102
|
-
operators: [
|
|
103
|
-
"+",
|
|
104
|
-
"-",
|
|
105
|
-
"*",
|
|
106
|
-
"/",
|
|
107
|
-
"~/",
|
|
108
|
-
"%",
|
|
109
|
-
"++",
|
|
110
|
-
"--",
|
|
111
|
-
"==",
|
|
112
|
-
"!=",
|
|
113
|
-
">",
|
|
114
|
-
"<",
|
|
115
|
-
">=",
|
|
116
|
-
"<=",
|
|
117
|
-
"=",
|
|
118
|
-
"-=",
|
|
119
|
-
"/=",
|
|
120
|
-
"%=",
|
|
121
|
-
">>=",
|
|
122
|
-
"^=",
|
|
123
|
-
"+=",
|
|
124
|
-
"*=",
|
|
125
|
-
"~/=",
|
|
126
|
-
"<<=",
|
|
127
|
-
"&=",
|
|
128
|
-
"!=",
|
|
129
|
-
"||",
|
|
130
|
-
"&&",
|
|
131
|
-
"&",
|
|
132
|
-
"|",
|
|
133
|
-
"^",
|
|
134
|
-
"~",
|
|
135
|
-
"<<",
|
|
136
|
-
">>",
|
|
137
|
-
"!",
|
|
138
|
-
">>>",
|
|
139
|
-
"??",
|
|
140
|
-
"?",
|
|
141
|
-
":",
|
|
142
|
-
"|="
|
|
143
|
-
],
|
|
144
|
-
// we include these common regular expressions
|
|
145
|
-
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
146
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
147
|
-
digits: /\d+(_+\d+)*/,
|
|
148
|
-
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
|
149
|
-
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
|
150
|
-
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
|
151
|
-
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
|
152
|
-
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
|
153
|
-
// The main tokenizer for our languages
|
|
154
|
-
tokenizer: {
|
|
155
|
-
root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
|
|
156
|
-
common: [
|
|
157
|
-
// identifiers and keywords
|
|
158
|
-
[
|
|
159
|
-
/[a-z_$][\w$]*/,
|
|
160
|
-
{
|
|
161
|
-
cases: {
|
|
162
|
-
"@typeKeywords": "type.identifier",
|
|
163
|
-
"@keywords": "keyword",
|
|
164
|
-
"@default": "identifier"
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
[/[A-Z_$][\w\$]*/, "type.identifier"],
|
|
169
|
-
// show class names
|
|
170
|
-
// [/[A-Z][\w\$]*/, 'identifier'],
|
|
171
|
-
// whitespace
|
|
172
|
-
{ include: "@whitespace" },
|
|
173
|
-
// regular expression: ensure it is terminated before beginning (otherwise it is an opeator)
|
|
174
|
-
[
|
|
175
|
-
/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
|
176
|
-
{ token: "regexp", bracket: "@open", next: "@regexp" }
|
|
177
|
-
],
|
|
178
|
-
// @ annotations.
|
|
179
|
-
[/@[a-zA-Z]+/, "annotation"],
|
|
180
|
-
// variable
|
|
181
|
-
// delimiters and operators
|
|
182
|
-
[/[()\[\]]/, "@brackets"],
|
|
183
|
-
[/[<>](?!@symbols)/, "@brackets"],
|
|
184
|
-
[/!(?=([^=]|$))/, "delimiter"],
|
|
185
|
-
[
|
|
186
|
-
/@symbols/,
|
|
187
|
-
{
|
|
188
|
-
cases: {
|
|
189
|
-
"@operators": "delimiter",
|
|
190
|
-
"@default": ""
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
// numbers
|
|
195
|
-
[/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
|
|
196
|
-
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
|
|
197
|
-
[/0[xX](@hexdigits)n?/, "number.hex"],
|
|
198
|
-
[/0[oO]?(@octaldigits)n?/, "number.octal"],
|
|
199
|
-
[/0[bB](@binarydigits)n?/, "number.binary"],
|
|
200
|
-
[/(@digits)n?/, "number"],
|
|
201
|
-
// delimiter: after number because of .\d floats
|
|
202
|
-
[/[;,.]/, "delimiter"],
|
|
203
|
-
// strings
|
|
204
|
-
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
205
|
-
// non-teminated string
|
|
206
|
-
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
207
|
-
// non-teminated string
|
|
208
|
-
[/"/, "string", "@string_double"],
|
|
209
|
-
[/'/, "string", "@string_single"]
|
|
210
|
-
// [/[a-zA-Z]+/, "variable"]
|
|
211
|
-
],
|
|
212
|
-
whitespace: [
|
|
213
|
-
[/[ \t\r\n]+/, ""],
|
|
214
|
-
[/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
|
|
215
|
-
[/\/\*/, "comment", "@comment"],
|
|
216
|
-
[/\/\/\/.*$/, "comment.doc"],
|
|
217
|
-
[/\/\/.*$/, "comment"]
|
|
218
|
-
],
|
|
219
|
-
comment: [
|
|
220
|
-
[/[^\/*]+/, "comment"],
|
|
221
|
-
[/\*\//, "comment", "@pop"],
|
|
222
|
-
[/[\/*]/, "comment"]
|
|
223
|
-
],
|
|
224
|
-
jsdoc: [
|
|
225
|
-
[/[^\/*]+/, "comment.doc"],
|
|
226
|
-
[/\*\//, "comment.doc", "@pop"],
|
|
227
|
-
[/[\/*]/, "comment.doc"]
|
|
228
|
-
],
|
|
229
|
-
// We match regular expression quite precisely
|
|
230
|
-
regexp: [
|
|
231
|
-
[
|
|
232
|
-
/(\{)(\d+(?:,\d*)?)(\})/,
|
|
233
|
-
["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
|
|
234
|
-
],
|
|
235
|
-
[
|
|
236
|
-
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
|
237
|
-
["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
|
238
|
-
],
|
|
239
|
-
[/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
|
|
240
|
-
[/[()]/, "regexp.escape.control"],
|
|
241
|
-
[/@regexpctl/, "regexp.escape.control"],
|
|
242
|
-
[/[^\\\/]/, "regexp"],
|
|
243
|
-
[/@regexpesc/, "regexp.escape"],
|
|
244
|
-
[/\\\./, "regexp.invalid"],
|
|
245
|
-
[/(\/)([gimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
|
|
246
|
-
],
|
|
247
|
-
regexrange: [
|
|
248
|
-
[/-/, "regexp.escape.control"],
|
|
249
|
-
[/\^/, "regexp.invalid"],
|
|
250
|
-
[/@regexpesc/, "regexp.escape"],
|
|
251
|
-
[/[^\]]/, "regexp"],
|
|
252
|
-
[
|
|
253
|
-
/\]/,
|
|
254
|
-
{
|
|
255
|
-
token: "regexp.escape.control",
|
|
256
|
-
next: "@pop",
|
|
257
|
-
bracket: "@close"
|
|
258
|
-
}
|
|
259
|
-
]
|
|
260
|
-
],
|
|
261
|
-
string_double: [
|
|
262
|
-
[/[^\\"\$]+/, "string"],
|
|
263
|
-
[/[^\\"]+/, "string"],
|
|
264
|
-
[/@escapes/, "string.escape"],
|
|
265
|
-
[/\\./, "string.escape.invalid"],
|
|
266
|
-
[/"/, "string", "@pop"],
|
|
267
|
-
[/\$\w+/, "identifier"]
|
|
268
|
-
],
|
|
269
|
-
string_single: [
|
|
270
|
-
[/[^\\'\$]+/, "string"],
|
|
271
|
-
[/@escapes/, "string.escape"],
|
|
272
|
-
[/\\./, "string.escape.invalid"],
|
|
273
|
-
[/'/, "string", "@pop"],
|
|
274
|
-
[/\$\w+/, "identifier"]
|
|
275
|
-
]
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
export {
|
|
279
|
-
e as conf,
|
|
280
|
-
n as language
|
|
281
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
brackets: [
|
|
3
|
-
["{", "}"],
|
|
4
|
-
["[", "]"],
|
|
5
|
-
["(", ")"]
|
|
6
|
-
],
|
|
7
|
-
autoClosingPairs: [
|
|
8
|
-
{ open: "{", close: "}" },
|
|
9
|
-
{ open: "[", close: "]" },
|
|
10
|
-
{ open: "(", close: ")" },
|
|
11
|
-
{ open: '"', close: '"' },
|
|
12
|
-
{ open: "'", close: "'" }
|
|
13
|
-
],
|
|
14
|
-
surroundingPairs: [
|
|
15
|
-
{ open: "{", close: "}" },
|
|
16
|
-
{ open: "[", close: "]" },
|
|
17
|
-
{ open: "(", close: ")" },
|
|
18
|
-
{ open: '"', close: '"' },
|
|
19
|
-
{ open: "'", close: "'" }
|
|
20
|
-
]
|
|
21
|
-
}, o = {
|
|
22
|
-
defaultToken: "",
|
|
23
|
-
tokenPostfix: ".dockerfile",
|
|
24
|
-
variable: /\${?[\w]+}?/,
|
|
25
|
-
tokenizer: {
|
|
26
|
-
root: [
|
|
27
|
-
{ include: "@whitespace" },
|
|
28
|
-
{ include: "@comment" },
|
|
29
|
-
[/(ONBUILD)(\s+)/, ["keyword", ""]],
|
|
30
|
-
[/(ENV)(\s+)([\w]+)/, ["keyword", "", { token: "variable", next: "@arguments" }]],
|
|
31
|
-
[
|
|
32
|
-
/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,
|
|
33
|
-
{ token: "keyword", next: "@arguments" }
|
|
34
|
-
]
|
|
35
|
-
],
|
|
36
|
-
arguments: [
|
|
37
|
-
{ include: "@whitespace" },
|
|
38
|
-
{ include: "@strings" },
|
|
39
|
-
[
|
|
40
|
-
/(@variable)/,
|
|
41
|
-
{
|
|
42
|
-
cases: {
|
|
43
|
-
"@eos": { token: "variable", next: "@popall" },
|
|
44
|
-
"@default": "variable"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
[
|
|
49
|
-
/\\/,
|
|
50
|
-
{
|
|
51
|
-
cases: {
|
|
52
|
-
"@eos": "",
|
|
53
|
-
"@default": ""
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
[
|
|
58
|
-
/./,
|
|
59
|
-
{
|
|
60
|
-
cases: {
|
|
61
|
-
"@eos": { token: "", next: "@popall" },
|
|
62
|
-
"@default": ""
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
],
|
|
67
|
-
// Deal with white space, including comments
|
|
68
|
-
whitespace: [
|
|
69
|
-
[
|
|
70
|
-
/\s+/,
|
|
71
|
-
{
|
|
72
|
-
cases: {
|
|
73
|
-
"@eos": { token: "", next: "@popall" },
|
|
74
|
-
"@default": ""
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
]
|
|
78
|
-
],
|
|
79
|
-
comment: [[/(^#.*$)/, "comment", "@popall"]],
|
|
80
|
-
// Recognize strings, including those broken across lines with \ (but not without)
|
|
81
|
-
strings: [
|
|
82
|
-
[/\\'$/, "", "@popall"],
|
|
83
|
-
// \' leaves @arguments at eol
|
|
84
|
-
[/\\'/, ""],
|
|
85
|
-
// \' is not a string
|
|
86
|
-
[/'$/, "string", "@popall"],
|
|
87
|
-
[/'/, "string", "@stringBody"],
|
|
88
|
-
[/"$/, "string", "@popall"],
|
|
89
|
-
[/"/, "string", "@dblStringBody"]
|
|
90
|
-
],
|
|
91
|
-
stringBody: [
|
|
92
|
-
[
|
|
93
|
-
/[^\\\$']/,
|
|
94
|
-
{
|
|
95
|
-
cases: {
|
|
96
|
-
"@eos": { token: "string", next: "@popall" },
|
|
97
|
-
"@default": "string"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
[/\\./, "string.escape"],
|
|
102
|
-
[/'$/, "string", "@popall"],
|
|
103
|
-
[/'/, "string", "@pop"],
|
|
104
|
-
[/(@variable)/, "variable"],
|
|
105
|
-
[/\\$/, "string"],
|
|
106
|
-
[/$/, "string", "@popall"]
|
|
107
|
-
],
|
|
108
|
-
dblStringBody: [
|
|
109
|
-
[
|
|
110
|
-
/[^\\\$"]/,
|
|
111
|
-
{
|
|
112
|
-
cases: {
|
|
113
|
-
"@eos": { token: "string", next: "@popall" },
|
|
114
|
-
"@default": "string"
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
[/\\./, "string.escape"],
|
|
119
|
-
[/"$/, "string", "@popall"],
|
|
120
|
-
[/"/, "string", "@pop"],
|
|
121
|
-
[/(@variable)/, "variable"],
|
|
122
|
-
[/\\$/, "string"],
|
|
123
|
-
[/$/, "string", "@popall"]
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
export {
|
|
128
|
-
e as conf,
|
|
129
|
-
o as language
|
|
130
|
-
};
|