monacozen 0.0.1 → 0.1.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/README.md +124 -0
- package/assets/antimono-ClsI0fxy.js +5 -0
- package/assets/antimono-zBXMptjq.css +1 -0
- package/assets/azcli-ue5GhsHI.js +55 -0
- package/assets/bat-C6DzPBcU.js +125 -0
- package/assets/bicep-B6UDBWZN.js +220 -0
- package/assets/cameligo-BoKy-zSd.js +191 -0
- package/assets/clojure-D8WHGr6v.js +148 -0
- package/assets/coffee-C16Mnhbm.js +262 -0
- package/assets/cpp-_HbkGdoj.js +232 -0
- package/assets/csharp-DeGXkEgi.js +262 -0
- package/assets/csp-DGVEba9U.js +48 -0
- package/assets/css-DmO2GtiT.js +286 -0
- package/assets/css.worker-B59bB4vF.js +6 -0
- package/assets/css.worker-zFzGcGyJ.js +96 -0
- package/assets/cssMode-B-yiAIn5.js +65 -0
- package/assets/cypher-5654EJL_.js +214 -0
- package/assets/dart-BjXVSQM-.js +238 -0
- package/assets/dist-Bx9hOuoB.js +624 -0
- package/assets/dockerfile-DSA8TJLS.js +193 -0
- package/assets/ecl-DoDWSDGs.js +228 -0
- package/assets/editor.api-C_6h_pYy.js +83476 -0
- package/assets/editorWebWorkerMain-Cpqca1A3.js +6 -0
- package/assets/editorWebWorkerMain-_4oyTYIl.js +33 -0
- package/assets/elixir-CzC02SL7.js +525 -0
- package/assets/freemarker2-Jvnudjht.js +718 -0
- package/assets/fsharp-DRGCXPNW.js +149 -0
- package/assets/go-CyErB8P9.js +167 -0
- package/assets/graphql-CNnvnjR8.js +176 -0
- package/assets/handlebars-B9HHtHT5.js +412 -0
- package/assets/hcl-D4a6HBjk.js +221 -0
- package/assets/html-B5_5MvV-.js +333 -0
- package/assets/html.worker-Czi9KUKj.js +6 -0
- package/assets/html.worker-D4M1xqlZ.js +509 -0
- package/assets/htmlMode-DcETbRqN.js +74 -0
- package/assets/ini-CpSjysbn.js +96 -0
- package/assets/java-DkRrYYRp.js +175 -0
- package/assets/javascript-Da2MNB2t.js +20 -0
- package/assets/json.worker-D3-21m4I.js +65 -0
- package/assets/json.worker-pkLWnKxn.js +6 -0
- package/assets/jsonMode-BtwFVp_X.js +450 -0
- package/assets/julia-DXDdnD4p.js +416 -0
- package/assets/kotlin-BNDyMshT.js +184 -0
- package/assets/less-3yDKfG4U.js +244 -0
- package/assets/liquid-DCciKNzb.js +199 -0
- package/assets/lspLanguageFeatures-CAn_K3Js.js +1455 -0
- package/assets/lua-CqDy9oHE.js +202 -0
- package/assets/m3-DyBtJGhR.js +195 -0
- package/assets/main-16cPxgwS.js +107 -0
- package/assets/main-CB71Lf5W.js +129 -0
- package/assets/main-HEYSEiwe.js +66 -0
- package/assets/markdown-DIkeztiD.js +264 -0
- package/assets/mdx-BcOG7QFm.js +329 -0
- package/assets/mips-BUbWxz0r.js +130 -0
- package/assets/monaco-BMsB0TPD.js +39430 -0
- package/assets/monaco-ffd8b062.css +3 -0
- package/assets/msdax-95fojGvn.js +158 -0
- package/assets/mysql-CX3tETwr.js +170 -0
- package/assets/objective-c-CK2i53vc.js +146 -0
- package/assets/pascal-wnGRqmNG.js +178 -0
- package/assets/pascaligo-DR2NqTqc.js +203 -0
- package/assets/perl-DXuijcFO.js +318 -0
- package/assets/pgsql-BFvD7ctB.js +160 -0
- package/assets/php-FZHoZ5C_.js +473 -0
- package/assets/pla-Cmb_VVG6.js +148 -0
- package/assets/postiats-DUwtyBVk.js +506 -0
- package/assets/powerquery-wUlwxvME.js +192 -0
- package/assets/powershell-Wf4X7WOf.js +213 -0
- package/assets/protobuf-CcMDFVG6.js +661 -0
- package/assets/pug-OPBd_9cN.js +302 -0
- package/assets/python-D2Z49Cw8.js +254 -0
- package/assets/qsharp-C4P6iWbB.js +145 -0
- package/assets/r-FHjiK9Ff.js +191 -0
- package/assets/razor-CfcSDTvR.js +519 -0
- package/assets/redis-CLJ_Tkzp.js +125 -0
- package/assets/redshift-Cn0YgnO8.js +160 -0
- package/assets/restructuredtext-Ckzl4aRZ.js +289 -0
- package/assets/ruby-Dhjv9xsd.js +529 -0
- package/assets/rust-Bq7le2bN.js +180 -0
- package/assets/scala-Bth6QY64.js +553 -0
- package/assets/scheme-BHXdn3HT.js +172 -0
- package/assets/scss-DVPfVfp2.js +419 -0
- package/assets/shell-DYY2DoAm.js +225 -0
- package/assets/solidity-C2dWya5C.js +149 -0
- package/assets/sophia-BdPli0VA.js +149 -0
- package/assets/sparql-Ca6NBL_y.js +126 -0
- package/assets/sql-CE5EfRV1.js +173 -0
- package/assets/st-BKcHiAlg.js +478 -0
- package/assets/swift-v0LuaFKN.js +215 -0
- package/assets/systemverilog-BRC61WOW.js +300 -0
- package/assets/tcl-Xx48oN1j.js +225 -0
- package/assets/ts.worker-CokkJ1Lk.js +6 -0
- package/assets/ts.worker-De3FAST6.js +67741 -0
- package/assets/tsMode-cdcRizUc.js +567 -0
- package/assets/twig-Dq5WyzaF.js +390 -0
- package/assets/typescript-B25ZZJLy.js +257 -0
- package/assets/typespec-DVZXVZWY.js +236 -0
- package/assets/vb--Ows3SAS.js +262 -0
- package/assets/wgsl-gwRTfDFE.js +147 -0
- package/assets/workers-qpP7-_JR.js +48 -0
- package/assets/xml-BD6eVsMx.js +130 -0
- package/assets/yaml-unVkvP57.js +223 -0
- package/lib.d.ts +8379 -0
- package/package.json +1 -1
- package/src/main.js +24 -0
- package/index.d.ts +0 -6
- package/index.js +0 -1
- package/readme.md +0 -1
- /package/{license.txt → LICENSE} +0 -0
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/elixir/elixir.js
|
|
2
|
+
var e = {
|
|
3
|
+
comments: { lineComment: "#" },
|
|
4
|
+
brackets: [
|
|
5
|
+
["{", "}"],
|
|
6
|
+
["[", "]"],
|
|
7
|
+
["(", ")"]
|
|
8
|
+
],
|
|
9
|
+
surroundingPairs: [
|
|
10
|
+
{
|
|
11
|
+
open: "{",
|
|
12
|
+
close: "}"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
open: "[",
|
|
16
|
+
close: "]"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "(",
|
|
20
|
+
close: ")"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
open: "'",
|
|
24
|
+
close: "'"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
open: "\"",
|
|
28
|
+
close: "\""
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
autoClosingPairs: [
|
|
32
|
+
{
|
|
33
|
+
open: "'",
|
|
34
|
+
close: "'",
|
|
35
|
+
notIn: ["string", "comment"]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
open: "\"",
|
|
39
|
+
close: "\"",
|
|
40
|
+
notIn: ["comment"]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
open: "\"\"\"",
|
|
44
|
+
close: "\"\"\""
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
open: "`",
|
|
48
|
+
close: "`",
|
|
49
|
+
notIn: ["string", "comment"]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
open: "(",
|
|
53
|
+
close: ")"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
open: "{",
|
|
57
|
+
close: "}"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
open: "[",
|
|
61
|
+
close: "]"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
open: "<<",
|
|
65
|
+
close: ">>"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
indentationRules: {
|
|
69
|
+
increaseIndentPattern: /^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,
|
|
70
|
+
decreaseIndentPattern: /^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/
|
|
71
|
+
}
|
|
72
|
+
}, t = {
|
|
73
|
+
defaultToken: "source",
|
|
74
|
+
tokenPostfix: ".elixir",
|
|
75
|
+
brackets: [
|
|
76
|
+
{
|
|
77
|
+
open: "[",
|
|
78
|
+
close: "]",
|
|
79
|
+
token: "delimiter.square"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
open: "(",
|
|
83
|
+
close: ")",
|
|
84
|
+
token: "delimiter.parenthesis"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
open: "{",
|
|
88
|
+
close: "}",
|
|
89
|
+
token: "delimiter.curly"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
open: "<<",
|
|
93
|
+
close: ">>",
|
|
94
|
+
token: "delimiter.angle.special"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
declarationKeywords: [
|
|
98
|
+
"def",
|
|
99
|
+
"defp",
|
|
100
|
+
"defn",
|
|
101
|
+
"defnp",
|
|
102
|
+
"defguard",
|
|
103
|
+
"defguardp",
|
|
104
|
+
"defmacro",
|
|
105
|
+
"defmacrop",
|
|
106
|
+
"defdelegate",
|
|
107
|
+
"defcallback",
|
|
108
|
+
"defmacrocallback",
|
|
109
|
+
"defmodule",
|
|
110
|
+
"defprotocol",
|
|
111
|
+
"defexception",
|
|
112
|
+
"defimpl",
|
|
113
|
+
"defstruct"
|
|
114
|
+
],
|
|
115
|
+
operatorKeywords: [
|
|
116
|
+
"and",
|
|
117
|
+
"in",
|
|
118
|
+
"not",
|
|
119
|
+
"or",
|
|
120
|
+
"when"
|
|
121
|
+
],
|
|
122
|
+
namespaceKeywords: [
|
|
123
|
+
"alias",
|
|
124
|
+
"import",
|
|
125
|
+
"require",
|
|
126
|
+
"use"
|
|
127
|
+
],
|
|
128
|
+
otherKeywords: [
|
|
129
|
+
"after",
|
|
130
|
+
"case",
|
|
131
|
+
"catch",
|
|
132
|
+
"cond",
|
|
133
|
+
"do",
|
|
134
|
+
"else",
|
|
135
|
+
"end",
|
|
136
|
+
"fn",
|
|
137
|
+
"for",
|
|
138
|
+
"if",
|
|
139
|
+
"quote",
|
|
140
|
+
"raise",
|
|
141
|
+
"receive",
|
|
142
|
+
"rescue",
|
|
143
|
+
"super",
|
|
144
|
+
"throw",
|
|
145
|
+
"try",
|
|
146
|
+
"unless",
|
|
147
|
+
"unquote_splicing",
|
|
148
|
+
"unquote",
|
|
149
|
+
"with"
|
|
150
|
+
],
|
|
151
|
+
constants: [
|
|
152
|
+
"true",
|
|
153
|
+
"false",
|
|
154
|
+
"nil"
|
|
155
|
+
],
|
|
156
|
+
nameBuiltin: [
|
|
157
|
+
"__MODULE__",
|
|
158
|
+
"__DIR__",
|
|
159
|
+
"__ENV__",
|
|
160
|
+
"__CALLER__",
|
|
161
|
+
"__STACKTRACE__"
|
|
162
|
+
],
|
|
163
|
+
operator: /-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,
|
|
164
|
+
variableName: /[a-z_][a-zA-Z0-9_]*[?!]?/,
|
|
165
|
+
atomName: /[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,
|
|
166
|
+
specialAtomName: /\.\.\.|<<>>|%\{\}|%|\{\}/,
|
|
167
|
+
aliasPart: /[A-Z][a-zA-Z0-9_]*/,
|
|
168
|
+
moduleName: /@aliasPart(?:\.@aliasPart)*/,
|
|
169
|
+
sigilSymmetricDelimiter: /"""|'''|"|'|\/|\|/,
|
|
170
|
+
sigilStartDelimiter: /@sigilSymmetricDelimiter|<|\{|\[|\(/,
|
|
171
|
+
sigilEndDelimiter: /@sigilSymmetricDelimiter|>|\}|\]|\)/,
|
|
172
|
+
sigilModifiers: /[a-zA-Z0-9]*/,
|
|
173
|
+
decimal: /\d(?:_?\d)*/,
|
|
174
|
+
hex: /[0-9a-fA-F](_?[0-9a-fA-F])*/,
|
|
175
|
+
octal: /[0-7](_?[0-7])*/,
|
|
176
|
+
binary: /[01](_?[01])*/,
|
|
177
|
+
escape: /\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,
|
|
178
|
+
tokenizer: {
|
|
179
|
+
root: [
|
|
180
|
+
{ include: "@whitespace" },
|
|
181
|
+
{ include: "@comments" },
|
|
182
|
+
{ include: "@keywordsShorthand" },
|
|
183
|
+
{ include: "@numbers" },
|
|
184
|
+
{ include: "@identifiers" },
|
|
185
|
+
{ include: "@strings" },
|
|
186
|
+
{ include: "@atoms" },
|
|
187
|
+
{ include: "@sigils" },
|
|
188
|
+
{ include: "@attributes" },
|
|
189
|
+
{ include: "@symbols" }
|
|
190
|
+
],
|
|
191
|
+
whitespace: [[/\s+/, "white"]],
|
|
192
|
+
comments: [[/(#)(.*)/, ["comment.punctuation", "comment"]]],
|
|
193
|
+
keywordsShorthand: [
|
|
194
|
+
[/(@atomName)(:)(\s+)/, [
|
|
195
|
+
"constant",
|
|
196
|
+
"constant.punctuation",
|
|
197
|
+
"white"
|
|
198
|
+
]],
|
|
199
|
+
[/"(?=([^"]|#\{.*?\}|\\")*":)/, {
|
|
200
|
+
token: "constant.delimiter",
|
|
201
|
+
next: "@doubleQuotedStringKeyword"
|
|
202
|
+
}],
|
|
203
|
+
[/'(?=([^']|#\{.*?\}|\\')*':)/, {
|
|
204
|
+
token: "constant.delimiter",
|
|
205
|
+
next: "@singleQuotedStringKeyword"
|
|
206
|
+
}]
|
|
207
|
+
],
|
|
208
|
+
doubleQuotedStringKeyword: [[/":/, {
|
|
209
|
+
token: "constant.delimiter",
|
|
210
|
+
next: "@pop"
|
|
211
|
+
}], { include: "@stringConstantContentInterpol" }],
|
|
212
|
+
singleQuotedStringKeyword: [[/':/, {
|
|
213
|
+
token: "constant.delimiter",
|
|
214
|
+
next: "@pop"
|
|
215
|
+
}], { include: "@stringConstantContentInterpol" }],
|
|
216
|
+
numbers: [
|
|
217
|
+
[/0b@binary/, "number.binary"],
|
|
218
|
+
[/0o@octal/, "number.octal"],
|
|
219
|
+
[/0x@hex/, "number.hex"],
|
|
220
|
+
[/@decimal\.@decimal([eE]-?@decimal)?/, "number.float"],
|
|
221
|
+
[/@decimal/, "number"]
|
|
222
|
+
],
|
|
223
|
+
identifiers: [
|
|
224
|
+
[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/, [
|
|
225
|
+
"keyword.declaration",
|
|
226
|
+
"white",
|
|
227
|
+
{ cases: {
|
|
228
|
+
unquote: "keyword",
|
|
229
|
+
"@default": "function"
|
|
230
|
+
} }
|
|
231
|
+
]],
|
|
232
|
+
[/(@variableName)(?=\s*\.?\s*\()/, { cases: {
|
|
233
|
+
"@declarationKeywords": "keyword.declaration",
|
|
234
|
+
"@namespaceKeywords": "keyword",
|
|
235
|
+
"@otherKeywords": "keyword",
|
|
236
|
+
"@default": "function.call"
|
|
237
|
+
} }],
|
|
238
|
+
[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/, [
|
|
239
|
+
"type.identifier",
|
|
240
|
+
"white",
|
|
241
|
+
"operator",
|
|
242
|
+
"white",
|
|
243
|
+
"function.call"
|
|
244
|
+
]],
|
|
245
|
+
[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/, [
|
|
246
|
+
"constant.punctuation",
|
|
247
|
+
"constant",
|
|
248
|
+
"white",
|
|
249
|
+
"operator",
|
|
250
|
+
"white",
|
|
251
|
+
"function.call"
|
|
252
|
+
]],
|
|
253
|
+
[/(\|>)(\s*)(@variableName)/, [
|
|
254
|
+
"operator",
|
|
255
|
+
"white",
|
|
256
|
+
{ cases: {
|
|
257
|
+
"@otherKeywords": "keyword",
|
|
258
|
+
"@default": "function.call"
|
|
259
|
+
} }
|
|
260
|
+
]],
|
|
261
|
+
[/(&)(\s*)(@variableName)/, [
|
|
262
|
+
"operator",
|
|
263
|
+
"white",
|
|
264
|
+
"function.call"
|
|
265
|
+
]],
|
|
266
|
+
[/@variableName/, { cases: {
|
|
267
|
+
"@declarationKeywords": "keyword.declaration",
|
|
268
|
+
"@operatorKeywords": "keyword.operator",
|
|
269
|
+
"@namespaceKeywords": "keyword",
|
|
270
|
+
"@otherKeywords": "keyword",
|
|
271
|
+
"@constants": "constant.language",
|
|
272
|
+
"@nameBuiltin": "variable.language",
|
|
273
|
+
"_.*": "comment.unused",
|
|
274
|
+
"@default": "identifier"
|
|
275
|
+
} }],
|
|
276
|
+
[/@moduleName/, "type.identifier"]
|
|
277
|
+
],
|
|
278
|
+
strings: [
|
|
279
|
+
[/"""/, {
|
|
280
|
+
token: "string.delimiter",
|
|
281
|
+
next: "@doubleQuotedHeredoc"
|
|
282
|
+
}],
|
|
283
|
+
[/'''/, {
|
|
284
|
+
token: "string.delimiter",
|
|
285
|
+
next: "@singleQuotedHeredoc"
|
|
286
|
+
}],
|
|
287
|
+
[/"/, {
|
|
288
|
+
token: "string.delimiter",
|
|
289
|
+
next: "@doubleQuotedString"
|
|
290
|
+
}],
|
|
291
|
+
[/'/, {
|
|
292
|
+
token: "string.delimiter",
|
|
293
|
+
next: "@singleQuotedString"
|
|
294
|
+
}]
|
|
295
|
+
],
|
|
296
|
+
doubleQuotedHeredoc: [[/"""/, {
|
|
297
|
+
token: "string.delimiter",
|
|
298
|
+
next: "@pop"
|
|
299
|
+
}], { include: "@stringContentInterpol" }],
|
|
300
|
+
singleQuotedHeredoc: [[/'''/, {
|
|
301
|
+
token: "string.delimiter",
|
|
302
|
+
next: "@pop"
|
|
303
|
+
}], { include: "@stringContentInterpol" }],
|
|
304
|
+
doubleQuotedString: [[/"/, {
|
|
305
|
+
token: "string.delimiter",
|
|
306
|
+
next: "@pop"
|
|
307
|
+
}], { include: "@stringContentInterpol" }],
|
|
308
|
+
singleQuotedString: [[/'/, {
|
|
309
|
+
token: "string.delimiter",
|
|
310
|
+
next: "@pop"
|
|
311
|
+
}], { include: "@stringContentInterpol" }],
|
|
312
|
+
atoms: [
|
|
313
|
+
[/(:)(@atomName)/, ["constant.punctuation", "constant"]],
|
|
314
|
+
[/:"/, {
|
|
315
|
+
token: "constant.delimiter",
|
|
316
|
+
next: "@doubleQuotedStringAtom"
|
|
317
|
+
}],
|
|
318
|
+
[/:'/, {
|
|
319
|
+
token: "constant.delimiter",
|
|
320
|
+
next: "@singleQuotedStringAtom"
|
|
321
|
+
}]
|
|
322
|
+
],
|
|
323
|
+
doubleQuotedStringAtom: [[/"/, {
|
|
324
|
+
token: "constant.delimiter",
|
|
325
|
+
next: "@pop"
|
|
326
|
+
}], { include: "@stringConstantContentInterpol" }],
|
|
327
|
+
singleQuotedStringAtom: [[/'/, {
|
|
328
|
+
token: "constant.delimiter",
|
|
329
|
+
next: "@pop"
|
|
330
|
+
}], { include: "@stringConstantContentInterpol" }],
|
|
331
|
+
sigils: [[/~[a-z]@sigilStartDelimiter/, {
|
|
332
|
+
token: "@rematch",
|
|
333
|
+
next: "@sigil.interpol"
|
|
334
|
+
}], [/~([A-Z]+)@sigilStartDelimiter/, {
|
|
335
|
+
token: "@rematch",
|
|
336
|
+
next: "@sigil.noInterpol"
|
|
337
|
+
}]],
|
|
338
|
+
sigil: [
|
|
339
|
+
[/~([a-z]|[A-Z]+)\{/, {
|
|
340
|
+
token: "@rematch",
|
|
341
|
+
switchTo: "@sigilStart.$S2.$1.{.}"
|
|
342
|
+
}],
|
|
343
|
+
[/~([a-z]|[A-Z]+)\[/, {
|
|
344
|
+
token: "@rematch",
|
|
345
|
+
switchTo: "@sigilStart.$S2.$1.[.]"
|
|
346
|
+
}],
|
|
347
|
+
[/~([a-z]|[A-Z]+)\(/, {
|
|
348
|
+
token: "@rematch",
|
|
349
|
+
switchTo: "@sigilStart.$S2.$1.(.)"
|
|
350
|
+
}],
|
|
351
|
+
[/~([a-z]|[A-Z]+)\</, {
|
|
352
|
+
token: "@rematch",
|
|
353
|
+
switchTo: "@sigilStart.$S2.$1.<.>"
|
|
354
|
+
}],
|
|
355
|
+
[/~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/, {
|
|
356
|
+
token: "@rematch",
|
|
357
|
+
switchTo: "@sigilStart.$S2.$1.$2.$2"
|
|
358
|
+
}]
|
|
359
|
+
],
|
|
360
|
+
"sigilStart.interpol.s": [[/~s@sigilStartDelimiter/, {
|
|
361
|
+
token: "string.delimiter",
|
|
362
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
363
|
+
}]],
|
|
364
|
+
"sigilContinue.interpol.s": [[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
365
|
+
"$1==$S5": {
|
|
366
|
+
token: "string.delimiter",
|
|
367
|
+
next: "@pop"
|
|
368
|
+
},
|
|
369
|
+
"@default": "string"
|
|
370
|
+
} }], { include: "@stringContentInterpol" }],
|
|
371
|
+
"sigilStart.noInterpol.S": [[/~S@sigilStartDelimiter/, {
|
|
372
|
+
token: "string.delimiter",
|
|
373
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
374
|
+
}]],
|
|
375
|
+
"sigilContinue.noInterpol.S": [
|
|
376
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "string"],
|
|
377
|
+
[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
378
|
+
"$1==$S5": {
|
|
379
|
+
token: "string.delimiter",
|
|
380
|
+
next: "@pop"
|
|
381
|
+
},
|
|
382
|
+
"@default": "string"
|
|
383
|
+
} }],
|
|
384
|
+
{ include: "@stringContent" }
|
|
385
|
+
],
|
|
386
|
+
"sigilStart.interpol.r": [[/~r@sigilStartDelimiter/, {
|
|
387
|
+
token: "regexp.delimiter",
|
|
388
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
389
|
+
}]],
|
|
390
|
+
"sigilContinue.interpol.r": [[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
391
|
+
"$1==$S5": {
|
|
392
|
+
token: "regexp.delimiter",
|
|
393
|
+
next: "@pop"
|
|
394
|
+
},
|
|
395
|
+
"@default": "regexp"
|
|
396
|
+
} }], { include: "@regexpContentInterpol" }],
|
|
397
|
+
"sigilStart.noInterpol.R": [[/~R@sigilStartDelimiter/, {
|
|
398
|
+
token: "regexp.delimiter",
|
|
399
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
400
|
+
}]],
|
|
401
|
+
"sigilContinue.noInterpol.R": [
|
|
402
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "regexp"],
|
|
403
|
+
[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
404
|
+
"$1==$S5": {
|
|
405
|
+
token: "regexp.delimiter",
|
|
406
|
+
next: "@pop"
|
|
407
|
+
},
|
|
408
|
+
"@default": "regexp"
|
|
409
|
+
} }],
|
|
410
|
+
{ include: "@regexpContent" }
|
|
411
|
+
],
|
|
412
|
+
"sigilStart.interpol": [[/~([a-z]|[A-Z]+)@sigilStartDelimiter/, {
|
|
413
|
+
token: "sigil.delimiter",
|
|
414
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
415
|
+
}]],
|
|
416
|
+
"sigilContinue.interpol": [[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
417
|
+
"$1==$S5": {
|
|
418
|
+
token: "sigil.delimiter",
|
|
419
|
+
next: "@pop"
|
|
420
|
+
},
|
|
421
|
+
"@default": "sigil"
|
|
422
|
+
} }], { include: "@sigilContentInterpol" }],
|
|
423
|
+
"sigilStart.noInterpol": [[/~([a-z]|[A-Z]+)@sigilStartDelimiter/, {
|
|
424
|
+
token: "sigil.delimiter",
|
|
425
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
426
|
+
}]],
|
|
427
|
+
"sigilContinue.noInterpol": [
|
|
428
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "sigil"],
|
|
429
|
+
[/(@sigilEndDelimiter)@sigilModifiers/, { cases: {
|
|
430
|
+
"$1==$S5": {
|
|
431
|
+
token: "sigil.delimiter",
|
|
432
|
+
next: "@pop"
|
|
433
|
+
},
|
|
434
|
+
"@default": "sigil"
|
|
435
|
+
} }],
|
|
436
|
+
{ include: "@sigilContent" }
|
|
437
|
+
],
|
|
438
|
+
attributes: [
|
|
439
|
+
[/\@(module|type)?doc (~[sS])?"""/, {
|
|
440
|
+
token: "comment.block.documentation",
|
|
441
|
+
next: "@doubleQuotedHeredocDocstring"
|
|
442
|
+
}],
|
|
443
|
+
[/\@(module|type)?doc (~[sS])?'''/, {
|
|
444
|
+
token: "comment.block.documentation",
|
|
445
|
+
next: "@singleQuotedHeredocDocstring"
|
|
446
|
+
}],
|
|
447
|
+
[/\@(module|type)?doc (~[sS])?"/, {
|
|
448
|
+
token: "comment.block.documentation",
|
|
449
|
+
next: "@doubleQuotedStringDocstring"
|
|
450
|
+
}],
|
|
451
|
+
[/\@(module|type)?doc (~[sS])?'/, {
|
|
452
|
+
token: "comment.block.documentation",
|
|
453
|
+
next: "@singleQuotedStringDocstring"
|
|
454
|
+
}],
|
|
455
|
+
[/\@(module|type)?doc false/, "comment.block.documentation"],
|
|
456
|
+
[/\@(@variableName)/, "variable"]
|
|
457
|
+
],
|
|
458
|
+
doubleQuotedHeredocDocstring: [[/"""/, {
|
|
459
|
+
token: "comment.block.documentation",
|
|
460
|
+
next: "@pop"
|
|
461
|
+
}], { include: "@docstringContent" }],
|
|
462
|
+
singleQuotedHeredocDocstring: [[/'''/, {
|
|
463
|
+
token: "comment.block.documentation",
|
|
464
|
+
next: "@pop"
|
|
465
|
+
}], { include: "@docstringContent" }],
|
|
466
|
+
doubleQuotedStringDocstring: [[/"/, {
|
|
467
|
+
token: "comment.block.documentation",
|
|
468
|
+
next: "@pop"
|
|
469
|
+
}], { include: "@docstringContent" }],
|
|
470
|
+
singleQuotedStringDocstring: [[/'/, {
|
|
471
|
+
token: "comment.block.documentation",
|
|
472
|
+
next: "@pop"
|
|
473
|
+
}], { include: "@docstringContent" }],
|
|
474
|
+
symbols: [
|
|
475
|
+
[/\?(\\.|[^\\\s])/, "number.constant"],
|
|
476
|
+
[/&\d+/, "operator"],
|
|
477
|
+
[/<<<|>>>/, "operator"],
|
|
478
|
+
[/[()\[\]\{\}]|<<|>>/, "@brackets"],
|
|
479
|
+
[/\.\.\./, "identifier"],
|
|
480
|
+
[/=>/, "punctuation"],
|
|
481
|
+
[/@operator/, "operator"],
|
|
482
|
+
[/[:;,.%]/, "punctuation"]
|
|
483
|
+
],
|
|
484
|
+
stringContentInterpol: [
|
|
485
|
+
{ include: "@interpolation" },
|
|
486
|
+
{ include: "@escapeChar" },
|
|
487
|
+
{ include: "@stringContent" }
|
|
488
|
+
],
|
|
489
|
+
stringContent: [[/./, "string"]],
|
|
490
|
+
stringConstantContentInterpol: [
|
|
491
|
+
{ include: "@interpolation" },
|
|
492
|
+
{ include: "@escapeChar" },
|
|
493
|
+
{ include: "@stringConstantContent" }
|
|
494
|
+
],
|
|
495
|
+
stringConstantContent: [[/./, "constant"]],
|
|
496
|
+
regexpContentInterpol: [
|
|
497
|
+
{ include: "@interpolation" },
|
|
498
|
+
{ include: "@escapeChar" },
|
|
499
|
+
{ include: "@regexpContent" }
|
|
500
|
+
],
|
|
501
|
+
regexpContent: [[/(\s)(#)(\s.*)$/, [
|
|
502
|
+
"white",
|
|
503
|
+
"comment.punctuation",
|
|
504
|
+
"comment"
|
|
505
|
+
]], [/./, "regexp"]],
|
|
506
|
+
sigilContentInterpol: [
|
|
507
|
+
{ include: "@interpolation" },
|
|
508
|
+
{ include: "@escapeChar" },
|
|
509
|
+
{ include: "@sigilContent" }
|
|
510
|
+
],
|
|
511
|
+
sigilContent: [[/./, "sigil"]],
|
|
512
|
+
docstringContent: [[/./, "comment.block.documentation"]],
|
|
513
|
+
escapeChar: [[/@escape/, "constant.character.escape"]],
|
|
514
|
+
interpolation: [[/#{/, {
|
|
515
|
+
token: "delimiter.bracket.embed",
|
|
516
|
+
next: "@interpolationContinue"
|
|
517
|
+
}]],
|
|
518
|
+
interpolationContinue: [[/}/, {
|
|
519
|
+
token: "delimiter.bracket.embed",
|
|
520
|
+
next: "@pop"
|
|
521
|
+
}], { include: "@root" }]
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
//#endregion
|
|
525
|
+
export { e as conf, t as language };
|