monacozen 0.5.1 → 0.6.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 +4 -0
- package/assets/_omit-monaco-features_css-qxObuaCQ.js +1 -0
- package/assets/_omit-monaco-features_html-VygYHg7B.js +1 -0
- package/assets/_omit-monaco-features_typescript-D_BnRRMx.js +1 -0
- package/assets/antimono-400-b0f584bd.woff2 +0 -0
- package/assets/antimono-400-italic-09f4c1ae.woff2 +0 -0
- package/assets/antimono-700-2072e038.woff2 +0 -0
- package/assets/antimono-700-italic-78952312.woff2 +0 -0
- package/assets/antimono-XFdMCgZb.js +2 -0
- package/assets/antimono-zBXMptjq.css +1 -1
- package/assets/bat-DkMb6tS9.js +1 -0
- package/assets/bicep-gz7oXw8V.js +2 -0
- package/assets/clojure-BeArCv4U.js +1 -0
- package/assets/codicon-77f90255.ttf +0 -0
- package/assets/coffee-hLOn_V5A.js +1 -0
- package/assets/cpp-DxRo2s7O.js +1 -0
- package/assets/csharp-C1LINnKt.js +1 -0
- package/assets/css-1Eg8GPA8.js +3 -0
- package/assets/cypher-Ca1JvSwk.js +1 -0
- package/assets/dart-Bje7CIuI.js +1 -0
- package/assets/dist-DiJdi6br.js +11 -0
- package/assets/dockerfile-DZFCIeNp.js +1 -0
- package/assets/editor.api-ClTSSybg.js +912 -0
- package/assets/editorWebWorkerMain-9q7AG3J9.js +1 -0
- package/assets/editorWebWorkerMain-BeKU-a3I.js +33 -0
- package/assets/elixir-6RTg0lbw.js +1 -0
- package/assets/fsharp-p7RecL-a.js +1 -0
- package/assets/go-B21Jr2Lc.js +1 -0
- package/assets/graphql-fmXr3nnJ.js +1 -0
- package/assets/handlebars-CyuWwLhs.js +1 -0
- package/assets/hcl-CpzslTdj.js +1 -0
- package/assets/html-D-6ViuBT.js +1 -0
- package/assets/ini-sBoK_t0W.js +1 -0
- package/assets/java-ByyLeZXC.js +1 -0
- package/assets/javascript-Cs-KDyqn.js +1 -0
- package/assets/{json.worker-CAiVr-gV.js → json.worker-BO5JkV3c.js} +6 -6
- package/assets/json.worker-D4KZT3k0.js +1 -0
- package/assets/jsonMode-CgXNHhiW.js +12 -0
- package/assets/julia-BNQOXozl.js +1 -0
- package/assets/kotlin-fjNqnENY.js +1 -0
- package/assets/less-B9-X_OHM.js +2 -0
- package/assets/liquid-Co_Rw9yK.js +1 -0
- package/assets/lua-CsQS60Ue.js +1 -0
- package/assets/main-DhJSBJDT.js +1 -0
- package/assets/main-HAVFq1WZ.js +1 -0
- package/assets/main-e2I2uRcQ.js +1 -0
- package/assets/markdown-D9M8UCDQ.js +1 -0
- package/assets/mdx-QikHivq4.js +1 -0
- package/assets/mips-DwkTBQD5.js +1 -0
- package/assets/monaco-9bd99409.css +3 -0
- package/assets/monaco-BPDUy015.js +59 -0
- package/assets/mysql-B9tHR_c9.js +1 -0
- package/assets/objective-c-Csug38Zp.js +1 -0
- package/assets/pascal-BruRBdsr.js +1 -0
- package/assets/perl-Dql_Egn0.js +1 -0
- package/assets/pgsql-DI4tfWYt.js +1 -0
- package/assets/php-DjHJy6xV.js +1 -0
- package/assets/powershell-DOR_yACD.js +1 -0
- package/assets/protobuf-B6qBET1H.js +2 -0
- package/assets/pug-BC7GTg9W.js +1 -0
- package/assets/python-ywrvpsv-.js +1 -0
- package/assets/r-B-J1yMT1.js +1 -0
- package/assets/redis-DZRGuxk2.js +1 -0
- package/assets/ruby-aklVn8qB.js +1 -0
- package/assets/rust-nh76nEti.js +1 -0
- package/assets/scala-BvnaqAb1.js +1 -0
- package/assets/scss-9xZSuRET.js +3 -0
- package/assets/shell-BOwo4WfX.js +1 -0
- package/assets/solidity-hGP85dDs.js +1 -0
- package/assets/sql-CIrXk7iQ.js +1 -0
- package/assets/swift-B0ETVgO9.js +1 -0
- package/assets/systemverilog-C0rJIDsQ.js +1 -0
- package/assets/twig-B_taSrVf.js +1 -0
- package/assets/typescript-pjjiBLxk.js +1 -0
- package/assets/typespec-uhVOI7Qs.js +1 -0
- package/assets/vb-4iFT4G4y.js +1 -0
- package/assets/wgsl-DpFanUEy.js +298 -0
- package/assets/xml-CuyY6WsM.js +1 -0
- package/assets/yaml-BDf1vVDq.js +1 -0
- package/assets/yaml.worker-D0QDX0Zj.js +1 -0
- package/assets/yaml.worker-DD5NU0Ed.js +431 -0
- package/package.json +1 -1
- package/src/main.js +19 -19
- package/assets/antimono-ClsI0fxy.js +0 -5
- package/assets/bat-CAz1OfAu.js +0 -125
- package/assets/bicep-B6UDBWZN.js +0 -220
- package/assets/clojure-BmcSQAck.js +0 -148
- package/assets/coffee-BjQKeqpj.js +0 -262
- package/assets/cpp-SbfDT5PL.js +0 -232
- package/assets/csharp-DIgVBsD4.js +0 -262
- package/assets/css-CyL9hcFb.js +0 -286
- package/assets/css.worker-BIsSvM_Q.js +0 -96
- package/assets/css.worker-ZGAWMrD5.js +0 -6
- package/assets/cssMode-CJXOwqou.js +0 -65
- package/assets/cypher-CFQunzEa.js +0 -214
- package/assets/dart-DeIsDVRt.js +0 -238
- package/assets/dist-Bx9hOuoB.js +0 -624
- package/assets/dockerfile-Yk3LuDQk.js +0 -193
- package/assets/editor.api-BzOtwRIu.js +0 -85776
- package/assets/editorWebWorkerMain-5pwK50BL.js +0 -6
- package/assets/editorWebWorkerMain-BioN9fGU.js +0 -33
- package/assets/elixir-y_NY5k67.js +0 -525
- package/assets/fsharp-DdRbc-sH.js +0 -149
- package/assets/go-D7w79i6g.js +0 -167
- package/assets/graphql-BsDuKp-c.js +0 -176
- package/assets/handlebars-CBxzRnT2.js +0 -412
- package/assets/hcl-CXnaLDBx.js +0 -221
- package/assets/html-2O_gNlhN.js +0 -333
- package/assets/html.worker-CEvqvEpu.js +0 -509
- package/assets/html.worker-CjDeE2MB.js +0 -6
- package/assets/htmlMode-DXEYjoJO.js +0 -74
- package/assets/ini-DAoNsTkV.js +0 -96
- package/assets/java-Cp0vrvO9.js +0 -175
- package/assets/javascript-b4MphFng.js +0 -20
- package/assets/json.worker-C4u3dDHp.js +0 -6
- package/assets/jsonMode-CJ6m-6ix.js +0 -450
- package/assets/julia-CVutXSdh.js +0 -416
- package/assets/kotlin-DYeWZuUb.js +0 -184
- package/assets/less-INmgXeDn.js +0 -244
- package/assets/liquid-vTiq1Xyj.js +0 -199
- package/assets/lspLanguageFeatures-bOiKIJ8R.js +0 -1455
- package/assets/lua-COF3XwLj.js +0 -202
- package/assets/main-16cPxgwS.js +0 -107
- package/assets/main-CB71Lf5W.js +0 -129
- package/assets/main-HEYSEiwe.js +0 -66
- package/assets/markdown-CCGC2kAW.js +0 -264
- package/assets/mdx-CDmJWd6e.js +0 -329
- package/assets/mips-ll8pdQLQ.js +0 -130
- package/assets/monaco-d37b1a8f.css +0 -3
- package/assets/monaco-eCLjoH9K.js +0 -40922
- package/assets/mysql-CnCmYLcK.js +0 -170
- package/assets/objective-c-D-xZGaTr.js +0 -146
- package/assets/pascal-CKVRL3bp.js +0 -178
- package/assets/perl-DqL2sfnN.js +0 -318
- package/assets/pgsql-BpvbArh-.js +0 -160
- package/assets/php-BbqlrNqC.js +0 -473
- package/assets/powershell-0oEoSDwW.js +0 -213
- package/assets/protobuf-DlOMtU4U.js +0 -661
- package/assets/pug-CTxaaQKP.js +0 -302
- package/assets/python-H0euVUAi.js +0 -254
- package/assets/r-DF_g8_2l.js +0 -191
- package/assets/redis-B09Z6nB5.js +0 -125
- package/assets/ruby-CWBObvDC.js +0 -529
- package/assets/rust-DdLDSWVK.js +0 -180
- package/assets/scala-Bg3GaqPc.js +0 -553
- package/assets/scss-D-qk8UVY.js +0 -419
- package/assets/shell-CpVOERQd.js +0 -225
- package/assets/solidity-CVmhJ22u.js +0 -149
- package/assets/sql-DHvzW7ba.js +0 -173
- package/assets/swift-DIkzszb_.js +0 -215
- package/assets/systemverilog-T3rz_k7V.js +0 -300
- package/assets/ts.worker-BydNuElr.js +0 -6
- package/assets/ts.worker-DZhhT1EO.js +0 -67741
- package/assets/tsMode-x1GCvxZU.js +0 -566
- package/assets/twig-CWOr6DII.js +0 -390
- package/assets/typescript-DGfbroT9.js +0 -257
- package/assets/typespec-4ubJw-FV.js +0 -236
- package/assets/vb-SSAHHOVh.js +0 -262
- package/assets/wgsl-hf5cqFtC.js +0 -147
- package/assets/xml-Bz6VGB5E.js +0 -130
- package/assets/yaml-D00PSO5v.js +0 -223
- package/assets/yaml.worker-DzOKX3TP.js +0 -474
- package/assets/yaml.worker-Y0uWi-gi.js +0 -6
package/assets/ruby-CWBObvDC.js
DELETED
|
@@ -1,529 +0,0 @@
|
|
|
1
|
-
//#region node_modules/monaco-editor/esm/vs/languages/definitions/ruby/ruby.js
|
|
2
|
-
var e = {
|
|
3
|
-
comments: {
|
|
4
|
-
lineComment: "#",
|
|
5
|
-
blockComment: ["=begin", "=end"]
|
|
6
|
-
},
|
|
7
|
-
brackets: [
|
|
8
|
-
["(", ")"],
|
|
9
|
-
["{", "}"],
|
|
10
|
-
["[", "]"]
|
|
11
|
-
],
|
|
12
|
-
autoClosingPairs: [
|
|
13
|
-
{
|
|
14
|
-
open: "{",
|
|
15
|
-
close: "}"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
open: "[",
|
|
19
|
-
close: "]"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
open: "(",
|
|
23
|
-
close: ")"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
open: "\"",
|
|
27
|
-
close: "\""
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
open: "'",
|
|
31
|
-
close: "'"
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
surroundingPairs: [
|
|
35
|
-
{
|
|
36
|
-
open: "{",
|
|
37
|
-
close: "}"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
open: "[",
|
|
41
|
-
close: "]"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
open: "(",
|
|
45
|
-
close: ")"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
open: "\"",
|
|
49
|
-
close: "\""
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
open: "'",
|
|
53
|
-
close: "'"
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
indentationRules: {
|
|
57
|
-
increaseIndentPattern: /* @__PURE__ */ RegExp("^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|(\"|'|/).*\\4)*(#.*)?$"),
|
|
58
|
-
decreaseIndentPattern: /* @__PURE__ */ RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")
|
|
59
|
-
}
|
|
60
|
-
}, t = {
|
|
61
|
-
tokenPostfix: ".ruby",
|
|
62
|
-
keywords: /* @__PURE__ */ "__LINE__.__ENCODING__.__FILE__.BEGIN.END.alias.and.begin.break.case.class.def.defined?.do.else.elsif.end.ensure.for.false.if.in.module.next.nil.not.or.redo.rescue.retry.return.self.super.then.true.undef.unless.until.when.while.yield".split("."),
|
|
63
|
-
keywordops: [
|
|
64
|
-
"::",
|
|
65
|
-
"..",
|
|
66
|
-
"...",
|
|
67
|
-
"?",
|
|
68
|
-
":",
|
|
69
|
-
"=>"
|
|
70
|
-
],
|
|
71
|
-
builtins: [
|
|
72
|
-
"require",
|
|
73
|
-
"public",
|
|
74
|
-
"private",
|
|
75
|
-
"include",
|
|
76
|
-
"extend",
|
|
77
|
-
"attr_reader",
|
|
78
|
-
"protected",
|
|
79
|
-
"private_class_method",
|
|
80
|
-
"protected_class_method",
|
|
81
|
-
"new"
|
|
82
|
-
],
|
|
83
|
-
declarations: [
|
|
84
|
-
"module",
|
|
85
|
-
"class",
|
|
86
|
-
"def",
|
|
87
|
-
"case",
|
|
88
|
-
"do",
|
|
89
|
-
"begin",
|
|
90
|
-
"for",
|
|
91
|
-
"if",
|
|
92
|
-
"while",
|
|
93
|
-
"until",
|
|
94
|
-
"unless"
|
|
95
|
-
],
|
|
96
|
-
linedecls: [
|
|
97
|
-
"def",
|
|
98
|
-
"case",
|
|
99
|
-
"do",
|
|
100
|
-
"begin",
|
|
101
|
-
"for",
|
|
102
|
-
"if",
|
|
103
|
-
"while",
|
|
104
|
-
"until",
|
|
105
|
-
"unless"
|
|
106
|
-
],
|
|
107
|
-
operators: /* @__PURE__ */ "^.&.|.<=>.==.===.!~.=~.>.>=.<.<=.<<.>>.+.-.*./.%.**.~.+@.-@.[].[]=.`.+=.-=.*=.**=./=.^=.%=.<<=.>>=.&=.&&=.||=.|=".split("."),
|
|
108
|
-
brackets: [
|
|
109
|
-
{
|
|
110
|
-
open: "(",
|
|
111
|
-
close: ")",
|
|
112
|
-
token: "delimiter.parenthesis"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
open: "{",
|
|
116
|
-
close: "}",
|
|
117
|
-
token: "delimiter.curly"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
open: "[",
|
|
121
|
-
close: "]",
|
|
122
|
-
token: "delimiter.square"
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
symbols: /[=><!~?:&|+\-*\/\^%\.]+/,
|
|
126
|
-
escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,
|
|
127
|
-
escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,
|
|
128
|
-
decpart: /\d(_?\d)*/,
|
|
129
|
-
decimal: /0|@decpart/,
|
|
130
|
-
delim: /[^a-zA-Z0-9\s\n\r]/,
|
|
131
|
-
heredelim: /(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,
|
|
132
|
-
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
|
133
|
-
regexpesc: /\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,
|
|
134
|
-
tokenizer: {
|
|
135
|
-
root: [
|
|
136
|
-
[/^(\s*)([a-z_]\w*[!?=]?)/, ["white", { cases: {
|
|
137
|
-
"for|until|while": {
|
|
138
|
-
token: "keyword.$2",
|
|
139
|
-
next: "@dodecl.$2"
|
|
140
|
-
},
|
|
141
|
-
"@declarations": {
|
|
142
|
-
token: "keyword.$2",
|
|
143
|
-
next: "@root.$2"
|
|
144
|
-
},
|
|
145
|
-
end: {
|
|
146
|
-
token: "keyword.$S2",
|
|
147
|
-
next: "@pop"
|
|
148
|
-
},
|
|
149
|
-
"@keywords": "keyword",
|
|
150
|
-
"@builtins": "predefined",
|
|
151
|
-
"@default": "identifier"
|
|
152
|
-
} }]],
|
|
153
|
-
[/[a-z_]\w*[!?=]?/, { cases: {
|
|
154
|
-
"if|unless|while|until": {
|
|
155
|
-
token: "keyword.$0x",
|
|
156
|
-
next: "@modifier.$0x"
|
|
157
|
-
},
|
|
158
|
-
for: {
|
|
159
|
-
token: "keyword.$2",
|
|
160
|
-
next: "@dodecl.$2"
|
|
161
|
-
},
|
|
162
|
-
"@linedecls": {
|
|
163
|
-
token: "keyword.$0",
|
|
164
|
-
next: "@root.$0"
|
|
165
|
-
},
|
|
166
|
-
end: {
|
|
167
|
-
token: "keyword.$S2",
|
|
168
|
-
next: "@pop"
|
|
169
|
-
},
|
|
170
|
-
"@keywords": "keyword",
|
|
171
|
-
"@builtins": "predefined",
|
|
172
|
-
"@default": "identifier"
|
|
173
|
-
} }],
|
|
174
|
-
[/[A-Z][\w]*[!?=]?/, "constructor.identifier"],
|
|
175
|
-
[/\$[\w]*/, "global.constant"],
|
|
176
|
-
[/@[\w]*/, "namespace.instance.identifier"],
|
|
177
|
-
[/@@@[\w]*/, "namespace.class.identifier"],
|
|
178
|
-
[/<<[-~](@heredelim).*/, {
|
|
179
|
-
token: "string.heredoc.delimiter",
|
|
180
|
-
next: "@heredoc.$1"
|
|
181
|
-
}],
|
|
182
|
-
[/[ \t\r\n]+<<(@heredelim).*/, {
|
|
183
|
-
token: "string.heredoc.delimiter",
|
|
184
|
-
next: "@heredoc.$1"
|
|
185
|
-
}],
|
|
186
|
-
[/^<<(@heredelim).*/, {
|
|
187
|
-
token: "string.heredoc.delimiter",
|
|
188
|
-
next: "@heredoc.$1"
|
|
189
|
-
}],
|
|
190
|
-
{ include: "@whitespace" },
|
|
191
|
-
[/"/, {
|
|
192
|
-
token: "string.d.delim",
|
|
193
|
-
next: "@dstring.d.\""
|
|
194
|
-
}],
|
|
195
|
-
[/'/, {
|
|
196
|
-
token: "string.sq.delim",
|
|
197
|
-
next: "@sstring.sq"
|
|
198
|
-
}],
|
|
199
|
-
[/%([rsqxwW]|Q?)/, {
|
|
200
|
-
token: "@rematch",
|
|
201
|
-
next: "pstring"
|
|
202
|
-
}],
|
|
203
|
-
[/`/, {
|
|
204
|
-
token: "string.x.delim",
|
|
205
|
-
next: "@dstring.x.`"
|
|
206
|
-
}],
|
|
207
|
-
[/:(\w|[$@])\w*[!?=]?/, "string.s"],
|
|
208
|
-
[/:"/, {
|
|
209
|
-
token: "string.s.delim",
|
|
210
|
-
next: "@dstring.s.\""
|
|
211
|
-
}],
|
|
212
|
-
[/:'/, {
|
|
213
|
-
token: "string.s.delim",
|
|
214
|
-
next: "@sstring.s"
|
|
215
|
-
}],
|
|
216
|
-
[/\/(?=(\\\/|[^\/\n])+\/)/, {
|
|
217
|
-
token: "regexp.delim",
|
|
218
|
-
next: "@regexp"
|
|
219
|
-
}],
|
|
220
|
-
[/[{}()\[\]]/, "@brackets"],
|
|
221
|
-
[/@symbols/, { cases: {
|
|
222
|
-
"@keywordops": "keyword",
|
|
223
|
-
"@operators": "operator",
|
|
224
|
-
"@default": ""
|
|
225
|
-
} }],
|
|
226
|
-
[/[;,]/, "delimiter"],
|
|
227
|
-
[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"],
|
|
228
|
-
[/0[_oO][0-7](_?[0-7])*/, "number.octal"],
|
|
229
|
-
[/0[bB][01](_?[01])*/, "number.binary"],
|
|
230
|
-
[/0[dD]@decpart/, "number"],
|
|
231
|
-
[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/, { cases: {
|
|
232
|
-
$1: "number.float",
|
|
233
|
-
"@default": "number"
|
|
234
|
-
} }]
|
|
235
|
-
],
|
|
236
|
-
dodecl: [
|
|
237
|
-
[/^/, {
|
|
238
|
-
token: "",
|
|
239
|
-
switchTo: "@root.$S2"
|
|
240
|
-
}],
|
|
241
|
-
[/[a-z_]\w*[!?=]?/, { cases: {
|
|
242
|
-
end: {
|
|
243
|
-
token: "keyword.$S2",
|
|
244
|
-
next: "@pop"
|
|
245
|
-
},
|
|
246
|
-
do: {
|
|
247
|
-
token: "keyword",
|
|
248
|
-
switchTo: "@root.$S2"
|
|
249
|
-
},
|
|
250
|
-
"@linedecls": {
|
|
251
|
-
token: "@rematch",
|
|
252
|
-
switchTo: "@root.$S2"
|
|
253
|
-
},
|
|
254
|
-
"@keywords": "keyword",
|
|
255
|
-
"@builtins": "predefined",
|
|
256
|
-
"@default": "identifier"
|
|
257
|
-
} }],
|
|
258
|
-
{ include: "@root" }
|
|
259
|
-
],
|
|
260
|
-
modifier: [
|
|
261
|
-
[
|
|
262
|
-
/^/,
|
|
263
|
-
"",
|
|
264
|
-
"@pop"
|
|
265
|
-
],
|
|
266
|
-
[/[a-z_]\w*[!?=]?/, { cases: {
|
|
267
|
-
end: {
|
|
268
|
-
token: "keyword.$S2",
|
|
269
|
-
next: "@pop"
|
|
270
|
-
},
|
|
271
|
-
"then|else|elsif|do": {
|
|
272
|
-
token: "keyword",
|
|
273
|
-
switchTo: "@root.$S2"
|
|
274
|
-
},
|
|
275
|
-
"@linedecls": {
|
|
276
|
-
token: "@rematch",
|
|
277
|
-
switchTo: "@root.$S2"
|
|
278
|
-
},
|
|
279
|
-
"@keywords": "keyword",
|
|
280
|
-
"@builtins": "predefined",
|
|
281
|
-
"@default": "identifier"
|
|
282
|
-
} }],
|
|
283
|
-
{ include: "@root" }
|
|
284
|
-
],
|
|
285
|
-
sstring: [
|
|
286
|
-
[/[^\\']+/, "string.$S2"],
|
|
287
|
-
[/\\\\|\\'|\\$/, "string.$S2.escape"],
|
|
288
|
-
[/\\./, "string.$S2.invalid"],
|
|
289
|
-
[/'/, {
|
|
290
|
-
token: "string.$S2.delim",
|
|
291
|
-
next: "@pop"
|
|
292
|
-
}]
|
|
293
|
-
],
|
|
294
|
-
dstring: [
|
|
295
|
-
[/[^\\`"#]+/, "string.$S2"],
|
|
296
|
-
[
|
|
297
|
-
/#/,
|
|
298
|
-
"string.$S2.escape",
|
|
299
|
-
"@interpolated"
|
|
300
|
-
],
|
|
301
|
-
[/\\$/, "string.$S2.escape"],
|
|
302
|
-
[/@escapes/, "string.$S2.escape"],
|
|
303
|
-
[/\\./, "string.$S2.escape.invalid"],
|
|
304
|
-
[/[`"]/, { cases: {
|
|
305
|
-
"$#==$S3": {
|
|
306
|
-
token: "string.$S2.delim",
|
|
307
|
-
next: "@pop"
|
|
308
|
-
},
|
|
309
|
-
"@default": "string.$S2"
|
|
310
|
-
} }]
|
|
311
|
-
],
|
|
312
|
-
heredoc: [[/^(\s*)(@heredelim)$/, { cases: {
|
|
313
|
-
"$2==$S2": ["string.heredoc", {
|
|
314
|
-
token: "string.heredoc.delimiter",
|
|
315
|
-
next: "@pop"
|
|
316
|
-
}],
|
|
317
|
-
"@default": ["string.heredoc", "string.heredoc"]
|
|
318
|
-
} }], [/.*/, "string.heredoc"]],
|
|
319
|
-
interpolated: [
|
|
320
|
-
[
|
|
321
|
-
/\$\w*/,
|
|
322
|
-
"global.constant",
|
|
323
|
-
"@pop"
|
|
324
|
-
],
|
|
325
|
-
[
|
|
326
|
-
/@\w*/,
|
|
327
|
-
"namespace.class.identifier",
|
|
328
|
-
"@pop"
|
|
329
|
-
],
|
|
330
|
-
[
|
|
331
|
-
/@@@\w*/,
|
|
332
|
-
"namespace.instance.identifier",
|
|
333
|
-
"@pop"
|
|
334
|
-
],
|
|
335
|
-
[/[{]/, {
|
|
336
|
-
token: "string.escape.curly",
|
|
337
|
-
switchTo: "@interpolated_compound"
|
|
338
|
-
}],
|
|
339
|
-
[
|
|
340
|
-
"",
|
|
341
|
-
"",
|
|
342
|
-
"@pop"
|
|
343
|
-
]
|
|
344
|
-
],
|
|
345
|
-
interpolated_compound: [[/[}]/, {
|
|
346
|
-
token: "string.escape.curly",
|
|
347
|
-
next: "@pop"
|
|
348
|
-
}], { include: "@root" }],
|
|
349
|
-
pregexp: [
|
|
350
|
-
{ include: "@whitespace" },
|
|
351
|
-
[/[^\(\{\[\\]/, { cases: {
|
|
352
|
-
"$#==$S3": {
|
|
353
|
-
token: "regexp.delim",
|
|
354
|
-
next: "@pop"
|
|
355
|
-
},
|
|
356
|
-
"$#==$S2": {
|
|
357
|
-
token: "regexp.delim",
|
|
358
|
-
next: "@push"
|
|
359
|
-
},
|
|
360
|
-
"~[)}\\]]": "@brackets.regexp.escape.control",
|
|
361
|
-
"~@regexpctl": "regexp.escape.control",
|
|
362
|
-
"@default": "regexp"
|
|
363
|
-
} }],
|
|
364
|
-
{ include: "@regexcontrol" }
|
|
365
|
-
],
|
|
366
|
-
regexp: [
|
|
367
|
-
{ include: "@regexcontrol" },
|
|
368
|
-
[/[^\\\/]/, "regexp"],
|
|
369
|
-
[
|
|
370
|
-
"/[ixmp]*",
|
|
371
|
-
{ token: "regexp.delim" },
|
|
372
|
-
"@pop"
|
|
373
|
-
]
|
|
374
|
-
],
|
|
375
|
-
regexcontrol: [
|
|
376
|
-
[/(\{)(\d+(?:,\d*)?)(\})/, [
|
|
377
|
-
"@brackets.regexp.escape.control",
|
|
378
|
-
"regexp.escape.control",
|
|
379
|
-
"@brackets.regexp.escape.control"
|
|
380
|
-
]],
|
|
381
|
-
[/(\[)(\^?)/, ["@brackets.regexp.escape.control", {
|
|
382
|
-
token: "regexp.escape.control",
|
|
383
|
-
next: "@regexrange"
|
|
384
|
-
}]],
|
|
385
|
-
[/(\()(\?[:=!])/, ["@brackets.regexp.escape.control", "regexp.escape.control"]],
|
|
386
|
-
[/\(\?#/, {
|
|
387
|
-
token: "regexp.escape.control",
|
|
388
|
-
next: "@regexpcomment"
|
|
389
|
-
}],
|
|
390
|
-
[/[()]/, "@brackets.regexp.escape.control"],
|
|
391
|
-
[/@regexpctl/, "regexp.escape.control"],
|
|
392
|
-
[/\\$/, "regexp.escape"],
|
|
393
|
-
[/@regexpesc/, "regexp.escape"],
|
|
394
|
-
[/\\\./, "regexp.invalid"],
|
|
395
|
-
[
|
|
396
|
-
/#/,
|
|
397
|
-
"regexp.escape",
|
|
398
|
-
"@interpolated"
|
|
399
|
-
]
|
|
400
|
-
],
|
|
401
|
-
regexrange: [
|
|
402
|
-
[/-/, "regexp.escape.control"],
|
|
403
|
-
[/\^/, "regexp.invalid"],
|
|
404
|
-
[/\\$/, "regexp.escape"],
|
|
405
|
-
[/@regexpesc/, "regexp.escape"],
|
|
406
|
-
[/[^\]]/, "regexp"],
|
|
407
|
-
[
|
|
408
|
-
/\]/,
|
|
409
|
-
"@brackets.regexp.escape.control",
|
|
410
|
-
"@pop"
|
|
411
|
-
]
|
|
412
|
-
],
|
|
413
|
-
regexpcomment: [[/[^)]+/, "comment"], [/\)/, {
|
|
414
|
-
token: "regexp.escape.control",
|
|
415
|
-
next: "@pop"
|
|
416
|
-
}]],
|
|
417
|
-
pstring: [
|
|
418
|
-
[/%([qws])\(/, {
|
|
419
|
-
token: "string.$1.delim",
|
|
420
|
-
switchTo: "@qstring.$1.(.)"
|
|
421
|
-
}],
|
|
422
|
-
[/%([qws])\[/, {
|
|
423
|
-
token: "string.$1.delim",
|
|
424
|
-
switchTo: "@qstring.$1.[.]"
|
|
425
|
-
}],
|
|
426
|
-
[/%([qws])\{/, {
|
|
427
|
-
token: "string.$1.delim",
|
|
428
|
-
switchTo: "@qstring.$1.{.}"
|
|
429
|
-
}],
|
|
430
|
-
[/%([qws])</, {
|
|
431
|
-
token: "string.$1.delim",
|
|
432
|
-
switchTo: "@qstring.$1.<.>"
|
|
433
|
-
}],
|
|
434
|
-
[/%([qws])(@delim)/, {
|
|
435
|
-
token: "string.$1.delim",
|
|
436
|
-
switchTo: "@qstring.$1.$2.$2"
|
|
437
|
-
}],
|
|
438
|
-
[/%r\(/, {
|
|
439
|
-
token: "regexp.delim",
|
|
440
|
-
switchTo: "@pregexp.(.)"
|
|
441
|
-
}],
|
|
442
|
-
[/%r\[/, {
|
|
443
|
-
token: "regexp.delim",
|
|
444
|
-
switchTo: "@pregexp.[.]"
|
|
445
|
-
}],
|
|
446
|
-
[/%r\{/, {
|
|
447
|
-
token: "regexp.delim",
|
|
448
|
-
switchTo: "@pregexp.{.}"
|
|
449
|
-
}],
|
|
450
|
-
[/%r</, {
|
|
451
|
-
token: "regexp.delim",
|
|
452
|
-
switchTo: "@pregexp.<.>"
|
|
453
|
-
}],
|
|
454
|
-
[/%r(@delim)/, {
|
|
455
|
-
token: "regexp.delim",
|
|
456
|
-
switchTo: "@pregexp.$1.$1"
|
|
457
|
-
}],
|
|
458
|
-
[/%(x|W|Q?)\(/, {
|
|
459
|
-
token: "string.$1.delim",
|
|
460
|
-
switchTo: "@qqstring.$1.(.)"
|
|
461
|
-
}],
|
|
462
|
-
[/%(x|W|Q?)\[/, {
|
|
463
|
-
token: "string.$1.delim",
|
|
464
|
-
switchTo: "@qqstring.$1.[.]"
|
|
465
|
-
}],
|
|
466
|
-
[/%(x|W|Q?)\{/, {
|
|
467
|
-
token: "string.$1.delim",
|
|
468
|
-
switchTo: "@qqstring.$1.{.}"
|
|
469
|
-
}],
|
|
470
|
-
[/%(x|W|Q?)</, {
|
|
471
|
-
token: "string.$1.delim",
|
|
472
|
-
switchTo: "@qqstring.$1.<.>"
|
|
473
|
-
}],
|
|
474
|
-
[/%(x|W|Q?)(@delim)/, {
|
|
475
|
-
token: "string.$1.delim",
|
|
476
|
-
switchTo: "@qqstring.$1.$2.$2"
|
|
477
|
-
}],
|
|
478
|
-
[/%([rqwsxW]|Q?)./, {
|
|
479
|
-
token: "invalid",
|
|
480
|
-
next: "@pop"
|
|
481
|
-
}],
|
|
482
|
-
[/./, {
|
|
483
|
-
token: "invalid",
|
|
484
|
-
next: "@pop"
|
|
485
|
-
}]
|
|
486
|
-
],
|
|
487
|
-
qstring: [
|
|
488
|
-
[/\\$/, "string.$S2.escape"],
|
|
489
|
-
[/\\./, "string.$S2.escape"],
|
|
490
|
-
[/./, { cases: {
|
|
491
|
-
"$#==$S4": {
|
|
492
|
-
token: "string.$S2.delim",
|
|
493
|
-
next: "@pop"
|
|
494
|
-
},
|
|
495
|
-
"$#==$S3": {
|
|
496
|
-
token: "string.$S2.delim",
|
|
497
|
-
next: "@push"
|
|
498
|
-
},
|
|
499
|
-
"@default": "string.$S2"
|
|
500
|
-
} }]
|
|
501
|
-
],
|
|
502
|
-
qqstring: [[
|
|
503
|
-
/#/,
|
|
504
|
-
"string.$S2.escape",
|
|
505
|
-
"@interpolated"
|
|
506
|
-
], { include: "@qstring" }],
|
|
507
|
-
whitespace: [
|
|
508
|
-
[/[ \t\r\n]+/, ""],
|
|
509
|
-
[
|
|
510
|
-
/^\s*=begin\b/,
|
|
511
|
-
"comment",
|
|
512
|
-
"@comment"
|
|
513
|
-
],
|
|
514
|
-
[/#.*$/, "comment"]
|
|
515
|
-
],
|
|
516
|
-
comment: [
|
|
517
|
-
[/[^=]+/, "comment"],
|
|
518
|
-
[/^\s*=begin\b/, "comment.invalid"],
|
|
519
|
-
[
|
|
520
|
-
/^\s*=end\b.*/,
|
|
521
|
-
"comment",
|
|
522
|
-
"@pop"
|
|
523
|
-
],
|
|
524
|
-
[/[=]/, "comment"]
|
|
525
|
-
]
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
//#endregion
|
|
529
|
-
export { e as conf, t as language };
|
package/assets/rust-DdLDSWVK.js
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
//#region node_modules/monaco-editor/esm/vs/languages/definitions/rust/rust.js
|
|
2
|
-
var e = {
|
|
3
|
-
comments: {
|
|
4
|
-
lineComment: "//",
|
|
5
|
-
blockComment: ["/*", "*/"]
|
|
6
|
-
},
|
|
7
|
-
brackets: [
|
|
8
|
-
["{", "}"],
|
|
9
|
-
["[", "]"],
|
|
10
|
-
["(", ")"]
|
|
11
|
-
],
|
|
12
|
-
autoClosingPairs: [
|
|
13
|
-
{
|
|
14
|
-
open: "[",
|
|
15
|
-
close: "]"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
open: "{",
|
|
19
|
-
close: "}"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
open: "(",
|
|
23
|
-
close: ")"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
open: "\"",
|
|
27
|
-
close: "\"",
|
|
28
|
-
notIn: ["string"]
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
surroundingPairs: [
|
|
32
|
-
{
|
|
33
|
-
open: "{",
|
|
34
|
-
close: "}"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
open: "[",
|
|
38
|
-
close: "]"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
open: "(",
|
|
42
|
-
close: ")"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
open: "\"",
|
|
46
|
-
close: "\""
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
open: "'",
|
|
50
|
-
close: "'"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
folding: { markers: {
|
|
54
|
-
start: /* @__PURE__ */ RegExp("^\\s*#pragma\\s+region\\b"),
|
|
55
|
-
end: /* @__PURE__ */ RegExp("^\\s*#pragma\\s+endregion\\b")
|
|
56
|
-
} }
|
|
57
|
-
}, t = {
|
|
58
|
-
tokenPostfix: ".rust",
|
|
59
|
-
defaultToken: "invalid",
|
|
60
|
-
keywords: /* @__PURE__ */ "as.async.await.box.break.const.continue.crate.dyn.else.enum.extern.false.fn.for.if.impl.in.let.loop.match.mod.move.mut.pub.ref.return.self.static.struct.super.trait.true.try.type.unsafe.use.where.while.catch.default.union.static.abstract.alignof.become.do.final.macro.offsetof.override.priv.proc.pure.sizeof.typeof.unsized.virtual.yield".split("."),
|
|
61
|
-
typeKeywords: /* @__PURE__ */ "Self.m32.m64.m128.f80.f16.f128.int.uint.float.char.bool.u8.u16.u32.u64.f32.f64.i8.i16.i32.i64.str.Option.Either.c_float.c_double.c_void.FILE.fpos_t.DIR.dirent.c_char.c_schar.c_uchar.c_short.c_ushort.c_int.c_uint.c_long.c_ulong.size_t.ptrdiff_t.clock_t.time_t.c_longlong.c_ulonglong.intptr_t.uintptr_t.off_t.dev_t.ino_t.pid_t.mode_t.ssize_t".split("."),
|
|
62
|
-
constants: [
|
|
63
|
-
"true",
|
|
64
|
-
"false",
|
|
65
|
-
"Some",
|
|
66
|
-
"None",
|
|
67
|
-
"Left",
|
|
68
|
-
"Right",
|
|
69
|
-
"Ok",
|
|
70
|
-
"Err"
|
|
71
|
-
],
|
|
72
|
-
supportConstants: /* @__PURE__ */ "EXIT_FAILURE.EXIT_SUCCESS.RAND_MAX.EOF.SEEK_SET.SEEK_CUR.SEEK_END._IOFBF._IONBF._IOLBF.BUFSIZ.FOPEN_MAX.FILENAME_MAX.L_tmpnam.TMP_MAX.O_RDONLY.O_WRONLY.O_RDWR.O_APPEND.O_CREAT.O_EXCL.O_TRUNC.S_IFIFO.S_IFCHR.S_IFBLK.S_IFDIR.S_IFREG.S_IFMT.S_IEXEC.S_IWRITE.S_IREAD.S_IRWXU.S_IXUSR.S_IWUSR.S_IRUSR.F_OK.R_OK.W_OK.X_OK.STDIN_FILENO.STDOUT_FILENO.STDERR_FILENO".split("."),
|
|
73
|
-
supportMacros: [
|
|
74
|
-
"format!",
|
|
75
|
-
"print!",
|
|
76
|
-
"println!",
|
|
77
|
-
"panic!",
|
|
78
|
-
"format_args!",
|
|
79
|
-
"unreachable!",
|
|
80
|
-
"write!",
|
|
81
|
-
"writeln!"
|
|
82
|
-
],
|
|
83
|
-
operators: /* @__PURE__ */ "!,!=,%,%=,&,&=,&&,*,*=,+,+=,-,-=,->,.,..,...,/,/=,:,;,<<,<<=,<,<=,=,==,=>,>,>=,>>,>>=,@,^,^=,|,|=,||,_,?,#".split(","),
|
|
84
|
-
escapes: /\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,
|
|
85
|
-
delimiters: /[,]/,
|
|
86
|
-
symbols: /[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,
|
|
87
|
-
intSuffixes: /[iu](8|16|32|64|128|size)/,
|
|
88
|
-
floatSuffixes: /f(32|64)/,
|
|
89
|
-
tokenizer: {
|
|
90
|
-
root: [
|
|
91
|
-
[/r(#*)"/, {
|
|
92
|
-
token: "string.quote",
|
|
93
|
-
bracket: "@open",
|
|
94
|
-
next: "@stringraw.$1"
|
|
95
|
-
}],
|
|
96
|
-
[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/, { cases: {
|
|
97
|
-
"@typeKeywords": "keyword.type",
|
|
98
|
-
"@keywords": "keyword",
|
|
99
|
-
"@supportConstants": "keyword",
|
|
100
|
-
"@supportMacros": "keyword",
|
|
101
|
-
"@constants": "keyword",
|
|
102
|
-
"@default": "identifier"
|
|
103
|
-
} }],
|
|
104
|
-
[/\$/, "identifier"],
|
|
105
|
-
[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/, "identifier"],
|
|
106
|
-
[/'(\S|@escapes)'/, "string.byteliteral"],
|
|
107
|
-
[/"/, {
|
|
108
|
-
token: "string.quote",
|
|
109
|
-
bracket: "@open",
|
|
110
|
-
next: "@string"
|
|
111
|
-
}],
|
|
112
|
-
{ include: "@numbers" },
|
|
113
|
-
{ include: "@whitespace" },
|
|
114
|
-
[/@delimiters/, { cases: {
|
|
115
|
-
"@keywords": "keyword",
|
|
116
|
-
"@default": "delimiter"
|
|
117
|
-
} }],
|
|
118
|
-
[/[{}()\[\]<>]/, "@brackets"],
|
|
119
|
-
[/@symbols/, { cases: {
|
|
120
|
-
"@operators": "operator",
|
|
121
|
-
"@default": ""
|
|
122
|
-
} }]
|
|
123
|
-
],
|
|
124
|
-
whitespace: [
|
|
125
|
-
[/[ \t\r\n]+/, "white"],
|
|
126
|
-
[
|
|
127
|
-
/\/\*/,
|
|
128
|
-
"comment",
|
|
129
|
-
"@comment"
|
|
130
|
-
],
|
|
131
|
-
[/\/\/.*$/, "comment"]
|
|
132
|
-
],
|
|
133
|
-
comment: [
|
|
134
|
-
[/[^\/*]+/, "comment"],
|
|
135
|
-
[
|
|
136
|
-
/\/\*/,
|
|
137
|
-
"comment",
|
|
138
|
-
"@push"
|
|
139
|
-
],
|
|
140
|
-
[
|
|
141
|
-
"\\*/",
|
|
142
|
-
"comment",
|
|
143
|
-
"@pop"
|
|
144
|
-
],
|
|
145
|
-
[/[\/*]/, "comment"]
|
|
146
|
-
],
|
|
147
|
-
string: [
|
|
148
|
-
[/[^\\"]+/, "string"],
|
|
149
|
-
[/@escapes/, "string.escape"],
|
|
150
|
-
[/\\./, "string.escape.invalid"],
|
|
151
|
-
[/"/, {
|
|
152
|
-
token: "string.quote",
|
|
153
|
-
bracket: "@close",
|
|
154
|
-
next: "@pop"
|
|
155
|
-
}]
|
|
156
|
-
],
|
|
157
|
-
stringraw: [
|
|
158
|
-
[/[^"#]+/, { token: "string" }],
|
|
159
|
-
[/"(#*)/, { cases: {
|
|
160
|
-
"$1==$S2": {
|
|
161
|
-
token: "string.quote",
|
|
162
|
-
bracket: "@close",
|
|
163
|
-
next: "@pop"
|
|
164
|
-
},
|
|
165
|
-
"@default": { token: "string" }
|
|
166
|
-
} }],
|
|
167
|
-
[/["#]/, { token: "string" }]
|
|
168
|
-
],
|
|
169
|
-
numbers: [
|
|
170
|
-
[/(0o[0-7_]+)(@intSuffixes)?/, { token: "number" }],
|
|
171
|
-
[/(0b[0-1_]+)(@intSuffixes)?/, { token: "number" }],
|
|
172
|
-
[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/, { token: "number" }],
|
|
173
|
-
[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/, { token: "number" }],
|
|
174
|
-
[/(0x[\da-fA-F]+)_?(@intSuffixes)?/, { token: "number" }],
|
|
175
|
-
[/[\d][\d_]*(@intSuffixes?)?/, { token: "number" }]
|
|
176
|
-
]
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
//#endregion
|
|
180
|
-
export { e as conf, t as language };
|