monacozen 0.0.1 → 0.2.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.
Files changed (91) hide show
  1. package/README.md +219 -0
  2. package/assets/antimono-ClsI0fxy.js +5 -0
  3. package/assets/antimono-zBXMptjq.css +1 -0
  4. package/assets/bat-T2vjbQzY.js +125 -0
  5. package/assets/bicep-B6UDBWZN.js +220 -0
  6. package/assets/clojure-BvXzD8Uz.js +148 -0
  7. package/assets/coffee-D_yet6sT.js +262 -0
  8. package/assets/cpp-CsfEADPM.js +232 -0
  9. package/assets/csharp-jw3fFksF.js +262 -0
  10. package/assets/css-FsiUe-xI.js +286 -0
  11. package/assets/css.worker-BIsSvM_Q.js +96 -0
  12. package/assets/css.worker-BSHdDU9y.js +6 -0
  13. package/assets/cssMode-7U-ime2d.js +65 -0
  14. package/assets/cypher-B8DgU2PH.js +214 -0
  15. package/assets/dart-D1x60wEn.js +238 -0
  16. package/assets/dist-Bx9hOuoB.js +624 -0
  17. package/assets/dockerfile-DSHxsy4G.js +193 -0
  18. package/assets/editor.api-ZYFspLPt.js +85776 -0
  19. package/assets/editorWebWorkerMain-BioN9fGU.js +33 -0
  20. package/assets/editorWebWorkerMain-DXr8-Jst.js +6 -0
  21. package/assets/elixir-Cr7BtjRU.js +525 -0
  22. package/assets/fsharp-CeVKIr0d.js +149 -0
  23. package/assets/go-BL4_0srD.js +167 -0
  24. package/assets/graphql-mhWekwK0.js +176 -0
  25. package/assets/handlebars-rQdtgZoQ.js +412 -0
  26. package/assets/hcl-CfyDj6z_.js +221 -0
  27. package/assets/html-DIDrd2Z7.js +333 -0
  28. package/assets/html.worker-BrBx6eB3.js +6 -0
  29. package/assets/html.worker-CEvqvEpu.js +509 -0
  30. package/assets/htmlMode-i6u-9r7u.js +74 -0
  31. package/assets/ini-DhiXkl_g.js +96 -0
  32. package/assets/java-Ct9YHm5L.js +175 -0
  33. package/assets/javascript-By915NHa.js +20 -0
  34. package/assets/json.worker-B0PzJ5jL.js +6 -0
  35. package/assets/json.worker-CAiVr-gV.js +65 -0
  36. package/assets/jsonMode-DAP8CNa2.js +450 -0
  37. package/assets/julia-BAYXm_pL.js +416 -0
  38. package/assets/kotlin-JEujETri.js +184 -0
  39. package/assets/less-oHZXXDVD.js +244 -0
  40. package/assets/liquid-Cvs1eMgo.js +199 -0
  41. package/assets/lspLanguageFeatures-D6P77uh_.js +1455 -0
  42. package/assets/lua-B3ViXcD8.js +202 -0
  43. package/assets/main-16cPxgwS.js +107 -0
  44. package/assets/main-CB71Lf5W.js +129 -0
  45. package/assets/main-HEYSEiwe.js +66 -0
  46. package/assets/markdown-Ggb6Rgvc.js +264 -0
  47. package/assets/mdx-Ce7sXDA4.js +329 -0
  48. package/assets/mips-cYdfQChM.js +130 -0
  49. package/assets/monaco-d37b1a8f.css +3 -0
  50. package/assets/monaco-o5F6wkXp.js +40865 -0
  51. package/assets/mysql-nklBC2QL.js +170 -0
  52. package/assets/objective-c-x5BzCYEv.js +146 -0
  53. package/assets/pascal-DWL5ya_C.js +178 -0
  54. package/assets/perl-CbRoLks6.js +318 -0
  55. package/assets/pgsql-CVS-AsDB.js +160 -0
  56. package/assets/php-6gZIubF1.js +473 -0
  57. package/assets/powershell-DKgJI7BG.js +213 -0
  58. package/assets/protobuf-N0VyW3k9.js +661 -0
  59. package/assets/pug-BIMEUctf.js +302 -0
  60. package/assets/python-BKt2Winm.js +254 -0
  61. package/assets/r-Cb2uCcX6.js +191 -0
  62. package/assets/redis-D1CRAuQ1.js +125 -0
  63. package/assets/ruby-BzpgsYNr.js +529 -0
  64. package/assets/rust-CkIXqWDr.js +180 -0
  65. package/assets/scala-CnJ7htCu.js +553 -0
  66. package/assets/scss-xP2eAFyY.js +419 -0
  67. package/assets/shell-JSjWPSrk.js +225 -0
  68. package/assets/solidity-C8AFhoIi.js +149 -0
  69. package/assets/sql-DqW-LmZI.js +173 -0
  70. package/assets/swift-BcHKQY-M.js +215 -0
  71. package/assets/systemverilog-Dmu-Ht4V.js +300 -0
  72. package/assets/ts.worker-BAchZA3W.js +6 -0
  73. package/assets/ts.worker-DZhhT1EO.js +67741 -0
  74. package/assets/tsMode-C_Fsqh0j.js +566 -0
  75. package/assets/twig-Bj4rwioa.js +390 -0
  76. package/assets/typescript-Djsb1cC9.js +257 -0
  77. package/assets/typespec-xwJ6QpRP.js +236 -0
  78. package/assets/vb-CMxAjmFH.js +262 -0
  79. package/assets/wgsl-CTYGQRo2.js +147 -0
  80. package/assets/xml-D7cJD5hW.js +130 -0
  81. package/assets/yaml-B8A0QdVf.js +223 -0
  82. package/assets/yaml.worker-Crtsysk5.js +474 -0
  83. package/assets/yaml.worker-DZ36155v.js +6 -0
  84. package/lib.d.ts +8403 -0
  85. package/lib.js +2 -0
  86. package/package.json +1 -1
  87. package/src/main.js +29 -0
  88. package/index.d.ts +0 -6
  89. package/index.js +0 -1
  90. package/readme.md +0 -1
  91. /package/{license.txt → LICENSE} +0 -0
@@ -0,0 +1,264 @@
1
+ //#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/definitions/markdown/markdown.js
2
+ var e = {
3
+ comments: { blockComment: ["<!--", "-->"] },
4
+ brackets: [
5
+ ["{", "}"],
6
+ ["[", "]"],
7
+ ["(", ")"]
8
+ ],
9
+ autoClosingPairs: [
10
+ {
11
+ open: "{",
12
+ close: "}"
13
+ },
14
+ {
15
+ open: "[",
16
+ close: "]"
17
+ },
18
+ {
19
+ open: "(",
20
+ close: ")"
21
+ },
22
+ {
23
+ open: "<",
24
+ close: ">",
25
+ notIn: ["string"]
26
+ }
27
+ ],
28
+ surroundingPairs: [
29
+ {
30
+ open: "(",
31
+ close: ")"
32
+ },
33
+ {
34
+ open: "[",
35
+ close: "]"
36
+ },
37
+ {
38
+ open: "`",
39
+ close: "`"
40
+ }
41
+ ],
42
+ folding: { markers: {
43
+ start: /* @__PURE__ */ RegExp("^\\s*<!--\\s*#?region\\b.*-->"),
44
+ end: /* @__PURE__ */ RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")
45
+ } }
46
+ }, t = {
47
+ defaultToken: "",
48
+ tokenPostfix: ".md",
49
+ control: /[\\`*_\[\]{}()#+\-\.!]/,
50
+ noncontrol: /[^\\`*_\[\]{}()#+\-\.!]/,
51
+ escapes: /\\(?:@control)/,
52
+ jsescapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
53
+ empty: [
54
+ "area",
55
+ "base",
56
+ "basefont",
57
+ "br",
58
+ "col",
59
+ "frame",
60
+ "hr",
61
+ "img",
62
+ "input",
63
+ "isindex",
64
+ "link",
65
+ "meta",
66
+ "param"
67
+ ],
68
+ tokenizer: {
69
+ root: [
70
+ [
71
+ /^\s*\|/,
72
+ "@rematch",
73
+ "@table_header"
74
+ ],
75
+ [/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/, [
76
+ "white",
77
+ "keyword",
78
+ "keyword",
79
+ "keyword"
80
+ ]],
81
+ [/^\s*(=+|\-+)\s*$/, "keyword"],
82
+ [/^\s*((\*[ ]?)+)\s*$/, "meta.separator"],
83
+ [/^\s*>+/, "comment"],
84
+ [/^\s*([\*\-+:]|\d+\.)\s/, "keyword"],
85
+ [/^(\t|[ ]{4})[^ ].*$/, "string"],
86
+ [/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, {
87
+ token: "string",
88
+ next: "@codeblock"
89
+ }],
90
+ [/^\s*```\s*((?:\w|[\/\-#])+).*$/, {
91
+ token: "string",
92
+ next: "@codeblockgh",
93
+ nextEmbedded: "$1"
94
+ }],
95
+ [/^\s*```\s*$/, {
96
+ token: "string",
97
+ next: "@codeblock"
98
+ }],
99
+ { include: "@linecontent" }
100
+ ],
101
+ table_header: [{ include: "@table_common" }, [/[^\|]+/, "keyword.table.header"]],
102
+ table_body: [{ include: "@table_common" }, { include: "@linecontent" }],
103
+ table_common: [
104
+ [/\s*[\-:]+\s*/, {
105
+ token: "keyword",
106
+ switchTo: "table_body"
107
+ }],
108
+ [/^\s*\|/, "keyword.table.left"],
109
+ [
110
+ /^\s*[^\|]/,
111
+ "@rematch",
112
+ "@pop"
113
+ ],
114
+ [
115
+ /^\s*$/,
116
+ "@rematch",
117
+ "@pop"
118
+ ],
119
+ [/\|/, { cases: {
120
+ "@eos": "keyword.table.right",
121
+ "@default": "keyword.table.middle"
122
+ } }]
123
+ ],
124
+ codeblock: [
125
+ [/^\s*~~~\s*$/, {
126
+ token: "string",
127
+ next: "@pop"
128
+ }],
129
+ [/^\s*```\s*$/, {
130
+ token: "string",
131
+ next: "@pop"
132
+ }],
133
+ [/.*$/, "variable.source"]
134
+ ],
135
+ codeblockgh: [[/```\s*$/, {
136
+ token: "string",
137
+ next: "@pop",
138
+ nextEmbedded: "@pop"
139
+ }], [/[^`]+/, "variable.source"]],
140
+ linecontent: [
141
+ [/&\w+;/, "string.escape"],
142
+ [/@escapes/, "escape"],
143
+ [/\b__([^\\_]|@escapes|_(?!_))+__\b/, "strong"],
144
+ [/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/, "strong"],
145
+ [/\b_[^_]+_\b/, "emphasis"],
146
+ [/\*([^\\*]|@escapes)+\*/, "emphasis"],
147
+ [/`([^\\`]|@escapes)+`/, "variable"],
148
+ [/\{+[^}]+\}+/, "string.target"],
149
+ [/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/, [
150
+ "string.link",
151
+ "",
152
+ "string.link"
153
+ ]],
154
+ [/(!?\[)((?:[^\]\\]|@escapes)*)(\])/, "string.link"],
155
+ { include: "html" }
156
+ ],
157
+ html: [
158
+ [/<(\w+)\/>/, "tag"],
159
+ [/<(\w+)(\-|\w)*/, { cases: {
160
+ "@empty": {
161
+ token: "tag",
162
+ next: "@tag.$1"
163
+ },
164
+ "@default": {
165
+ token: "tag",
166
+ next: "@tag.$1"
167
+ }
168
+ } }],
169
+ [/<\/(\w+)(\-|\w)*\s*>/, { token: "tag" }],
170
+ [
171
+ /<!--/,
172
+ "comment",
173
+ "@comment"
174
+ ]
175
+ ],
176
+ comment: [
177
+ [/[^<\-]+/, "comment.content"],
178
+ [
179
+ /-->/,
180
+ "comment",
181
+ "@pop"
182
+ ],
183
+ [/<!--/, "comment.content.invalid"],
184
+ [/[<\-]/, "comment.content"]
185
+ ],
186
+ tag: [
187
+ [/[ \t\r\n]+/, "white"],
188
+ [/(type)(\s*=\s*)(")([^"]+)(")/, [
189
+ "attribute.name.html",
190
+ "delimiter.html",
191
+ "string.html",
192
+ {
193
+ token: "string.html",
194
+ switchTo: "@tag.$S2.$4"
195
+ },
196
+ "string.html"
197
+ ]],
198
+ [/(type)(\s*=\s*)(')([^']+)(')/, [
199
+ "attribute.name.html",
200
+ "delimiter.html",
201
+ "string.html",
202
+ {
203
+ token: "string.html",
204
+ switchTo: "@tag.$S2.$4"
205
+ },
206
+ "string.html"
207
+ ]],
208
+ [/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/, [
209
+ "attribute.name.html",
210
+ "delimiter.html",
211
+ "string.html"
212
+ ]],
213
+ [/\w+/, "attribute.name.html"],
214
+ [
215
+ /\/>/,
216
+ "tag",
217
+ "@pop"
218
+ ],
219
+ [/>/, { cases: {
220
+ "$S2==style": {
221
+ token: "tag",
222
+ switchTo: "embeddedStyle",
223
+ nextEmbedded: "text/css"
224
+ },
225
+ "$S2==script": { cases: {
226
+ $S3: {
227
+ token: "tag",
228
+ switchTo: "embeddedScript",
229
+ nextEmbedded: "$S3"
230
+ },
231
+ "@default": {
232
+ token: "tag",
233
+ switchTo: "embeddedScript",
234
+ nextEmbedded: "text/javascript"
235
+ }
236
+ } },
237
+ "@default": {
238
+ token: "tag",
239
+ next: "@pop"
240
+ }
241
+ } }]
242
+ ],
243
+ embeddedStyle: [
244
+ [/[^<]+/, ""],
245
+ [/<\/style\s*>/, {
246
+ token: "@rematch",
247
+ next: "@pop",
248
+ nextEmbedded: "@pop"
249
+ }],
250
+ [/</, ""]
251
+ ],
252
+ embeddedScript: [
253
+ [/[^<]+/, ""],
254
+ [/<\/script\s*>/, {
255
+ token: "@rematch",
256
+ next: "@pop",
257
+ nextEmbedded: "@pop"
258
+ }],
259
+ [/</, ""]
260
+ ]
261
+ }
262
+ };
263
+ //#endregion
264
+ export { e as conf, t as language };
@@ -0,0 +1,329 @@
1
+ import { m as e } from "./editor.api-ZYFspLPt.js";
2
+ //#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/definitions/mdx/mdx.js
3
+ var t = {
4
+ comments: { blockComment: ["{/*", "*/}"] },
5
+ brackets: [["{", "}"]],
6
+ autoClosingPairs: [
7
+ {
8
+ open: "\"",
9
+ close: "\""
10
+ },
11
+ {
12
+ open: "'",
13
+ close: "'"
14
+ },
15
+ {
16
+ open: "“",
17
+ close: "”"
18
+ },
19
+ {
20
+ open: "‘",
21
+ close: "’"
22
+ },
23
+ {
24
+ open: "`",
25
+ close: "`"
26
+ },
27
+ {
28
+ open: "{",
29
+ close: "}"
30
+ },
31
+ {
32
+ open: "(",
33
+ close: ")"
34
+ },
35
+ {
36
+ open: "_",
37
+ close: "_"
38
+ },
39
+ {
40
+ open: "**",
41
+ close: "**"
42
+ },
43
+ {
44
+ open: "<",
45
+ close: ">"
46
+ }
47
+ ],
48
+ onEnterRules: [
49
+ {
50
+ beforeText: /^\s*- .+/,
51
+ action: {
52
+ indentAction: e.IndentAction.None,
53
+ appendText: "- "
54
+ }
55
+ },
56
+ {
57
+ beforeText: /^\s*\+ .+/,
58
+ action: {
59
+ indentAction: e.IndentAction.None,
60
+ appendText: "+ "
61
+ }
62
+ },
63
+ {
64
+ beforeText: /^\s*\* .+/,
65
+ action: {
66
+ indentAction: e.IndentAction.None,
67
+ appendText: "* "
68
+ }
69
+ },
70
+ {
71
+ beforeText: /^> /,
72
+ action: {
73
+ indentAction: e.IndentAction.None,
74
+ appendText: "> "
75
+ }
76
+ },
77
+ {
78
+ beforeText: /<\w+/,
79
+ action: { indentAction: e.IndentAction.Indent }
80
+ },
81
+ {
82
+ beforeText: /\s+>\s*$/,
83
+ action: { indentAction: e.IndentAction.Indent }
84
+ },
85
+ {
86
+ beforeText: /<\/\w+>/,
87
+ action: { indentAction: e.IndentAction.Outdent }
88
+ },
89
+ ...Array.from({ length: 100 }, (t, n) => ({
90
+ beforeText: RegExp(`^${n}\\. .+`),
91
+ action: {
92
+ indentAction: e.IndentAction.None,
93
+ appendText: `${n + 1}. `
94
+ }
95
+ }))
96
+ ]
97
+ }, n = {
98
+ defaultToken: "",
99
+ tokenPostfix: ".mdx",
100
+ control: /[!#()*+.[\\\]_`{}\-]/,
101
+ escapes: /\\@control/,
102
+ tokenizer: {
103
+ root: [
104
+ [/^---$/, {
105
+ token: "meta.content",
106
+ next: "@frontmatter",
107
+ nextEmbedded: "yaml"
108
+ }],
109
+ [/^\s*import/, {
110
+ token: "keyword",
111
+ next: "@import",
112
+ nextEmbedded: "js"
113
+ }],
114
+ [/^\s*export/, {
115
+ token: "keyword",
116
+ next: "@export",
117
+ nextEmbedded: "js"
118
+ }],
119
+ [/<\w+/, {
120
+ token: "type.identifier",
121
+ next: "@jsx"
122
+ }],
123
+ [/<\/?\w+>/, "type.identifier"],
124
+ [/^(\s*)(>*\s*)(#{1,6}\s)/, [
125
+ { token: "white" },
126
+ { token: "comment" },
127
+ {
128
+ token: "keyword",
129
+ next: "@header"
130
+ }
131
+ ]],
132
+ [/^(\s*)(>*\s*)([*+-])(\s+)/, [
133
+ "white",
134
+ "comment",
135
+ "keyword",
136
+ "white"
137
+ ]],
138
+ [/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, [
139
+ "white",
140
+ "comment",
141
+ "number",
142
+ "white"
143
+ ]],
144
+ [/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, [
145
+ "white",
146
+ "comment",
147
+ "number",
148
+ "white"
149
+ ]],
150
+ [/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/, [
151
+ "white",
152
+ "comment",
153
+ "keyword"
154
+ ]],
155
+ [/`{3,}(\s.*)?$/, {
156
+ token: "string",
157
+ next: "@codeblock_backtick"
158
+ }],
159
+ [/~{3,}(\s.*)?$/, {
160
+ token: "string",
161
+ next: "@codeblock_tilde"
162
+ }],
163
+ [/`{3,}(\S+).*$/, {
164
+ token: "string",
165
+ next: "@codeblock_highlight_backtick",
166
+ nextEmbedded: "$1"
167
+ }],
168
+ [/~{3,}(\S+).*$/, {
169
+ token: "string",
170
+ next: "@codeblock_highlight_tilde",
171
+ nextEmbedded: "$1"
172
+ }],
173
+ [/^(\s*)(-{4,})$/, ["white", "comment"]],
174
+ [/^(\s*)(>+)/, ["white", "comment"]],
175
+ { include: "content" }
176
+ ],
177
+ content: [
178
+ [/(\[)(.+)(]\()(.+)(\s+".*")(\))/, [
179
+ "",
180
+ "string.link",
181
+ "",
182
+ "type.identifier",
183
+ "string.link",
184
+ ""
185
+ ]],
186
+ [/(\[)(.+)(]\()(.+)(\))/, [
187
+ "",
188
+ "type.identifier",
189
+ "",
190
+ "string.link",
191
+ ""
192
+ ]],
193
+ [/(\[)(.+)(]\[)(.+)(])/, [
194
+ "",
195
+ "type.identifier",
196
+ "",
197
+ "type.identifier",
198
+ ""
199
+ ]],
200
+ [/(\[)(.+)(]:\s+)(\S*)/, [
201
+ "",
202
+ "type.identifier",
203
+ "",
204
+ "string.link"
205
+ ]],
206
+ [/(\[)(.+)(])/, [
207
+ "",
208
+ "type.identifier",
209
+ ""
210
+ ]],
211
+ [/`.*`/, "variable.source"],
212
+ [/_/, {
213
+ token: "emphasis",
214
+ next: "@emphasis_underscore"
215
+ }],
216
+ [/\*(?!\*)/, {
217
+ token: "emphasis",
218
+ next: "@emphasis_asterisk"
219
+ }],
220
+ [/\*\*/, {
221
+ token: "strong",
222
+ next: "@strong"
223
+ }],
224
+ [/{/, {
225
+ token: "delimiter.bracket",
226
+ next: "@expression",
227
+ nextEmbedded: "js"
228
+ }]
229
+ ],
230
+ import: [[/'\s*(;|$)/, {
231
+ token: "string",
232
+ next: "@pop",
233
+ nextEmbedded: "@pop"
234
+ }]],
235
+ expression: [[/{/, {
236
+ token: "delimiter.bracket",
237
+ next: "@expression"
238
+ }], [/}/, {
239
+ token: "delimiter.bracket",
240
+ next: "@pop",
241
+ nextEmbedded: "@pop"
242
+ }]],
243
+ export: [[/^\s*$/, {
244
+ token: "delimiter.bracket",
245
+ next: "@pop",
246
+ nextEmbedded: "@pop"
247
+ }]],
248
+ jsx: [
249
+ [/\s+/, ""],
250
+ [/(\w+)(=)("(?:[^"\\]|\\.)*")/, [
251
+ "attribute.name",
252
+ "operator",
253
+ "string"
254
+ ]],
255
+ [/(\w+)(=)('(?:[^'\\]|\\.)*')/, [
256
+ "attribute.name",
257
+ "operator",
258
+ "string"
259
+ ]],
260
+ [/(\w+(?=\s|>|={|$))/, ["attribute.name"]],
261
+ [/={/, {
262
+ token: "delimiter.bracket",
263
+ next: "@expression",
264
+ nextEmbedded: "js"
265
+ }],
266
+ [/>/, {
267
+ token: "type.identifier",
268
+ next: "@pop"
269
+ }]
270
+ ],
271
+ header: [
272
+ [/.$/, {
273
+ token: "keyword",
274
+ next: "@pop"
275
+ }],
276
+ { include: "content" },
277
+ [/./, { token: "keyword" }]
278
+ ],
279
+ strong: [
280
+ [/\*\*/, {
281
+ token: "strong",
282
+ next: "@pop"
283
+ }],
284
+ { include: "content" },
285
+ [/./, { token: "strong" }]
286
+ ],
287
+ emphasis_underscore: [
288
+ [/_/, {
289
+ token: "emphasis",
290
+ next: "@pop"
291
+ }],
292
+ { include: "content" },
293
+ [/./, { token: "emphasis" }]
294
+ ],
295
+ emphasis_asterisk: [
296
+ [/\*(?!\*)/, {
297
+ token: "emphasis",
298
+ next: "@pop"
299
+ }],
300
+ { include: "content" },
301
+ [/./, { token: "emphasis" }]
302
+ ],
303
+ frontmatter: [[/^---$/, {
304
+ token: "meta.content",
305
+ nextEmbedded: "@pop",
306
+ next: "@pop"
307
+ }]],
308
+ codeblock_highlight_backtick: [[/\s*`{3,}\s*$/, {
309
+ token: "string",
310
+ next: "@pop",
311
+ nextEmbedded: "@pop"
312
+ }], [/.*$/, "variable.source"]],
313
+ codeblock_highlight_tilde: [[/\s*~{3,}\s*$/, {
314
+ token: "string",
315
+ next: "@pop",
316
+ nextEmbedded: "@pop"
317
+ }], [/.*$/, "variable.source"]],
318
+ codeblock_backtick: [[/\s*`{3,}\s*$/, {
319
+ token: "string",
320
+ next: "@pop"
321
+ }], [/.*$/, "variable.source"]],
322
+ codeblock_tilde: [[/\s*~{3,}\s*$/, {
323
+ token: "string",
324
+ next: "@pop"
325
+ }], [/.*$/, "variable.source"]]
326
+ }
327
+ };
328
+ //#endregion
329
+ export { t as conf, n as language };
@@ -0,0 +1,130 @@
1
+ //#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/definitions/mips/mips.js
2
+ var e = {
3
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
4
+ comments: {
5
+ blockComment: ["###", "###"],
6
+ lineComment: "#"
7
+ },
8
+ folding: { markers: {
9
+ start: /* @__PURE__ */ RegExp("^\\s*#region\\b"),
10
+ end: /* @__PURE__ */ RegExp("^\\s*#endregion\\b")
11
+ } }
12
+ }, t = {
13
+ defaultToken: "",
14
+ ignoreCase: !1,
15
+ tokenPostfix: ".mips",
16
+ regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
17
+ keywords: /* @__PURE__ */ ".data,.text,syscall,trap,add,addu,addi,addiu,and,andi,div,divu,mult,multu,nor,or,ori,sll,slv,sra,srav,srl,srlv,sub,subu,xor,xori,lhi,lho,lhi,llo,slt,slti,sltu,sltiu,beq,bgtz,blez,bne,j,jal,jalr,jr,lb,lbu,lh,lhu,lw,li,la,sb,sh,sw,mfhi,mflo,mthi,mtlo,move".split(","),
18
+ symbols: /[\.,\:]+/,
19
+ escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
20
+ tokenizer: {
21
+ root: [
22
+ [/\$[a-zA-Z_]\w*/, "variable.predefined"],
23
+ [/[.a-zA-Z_]\w*/, { cases: {
24
+ this: "variable.predefined",
25
+ "@keywords": { token: "keyword.$0" },
26
+ "@default": ""
27
+ } }],
28
+ [/[ \t\r\n]+/, ""],
29
+ [/#.*$/, "comment"],
30
+ ["///", {
31
+ token: "regexp",
32
+ next: "@hereregexp"
33
+ }],
34
+ [/^(\s*)(@regEx)/, ["", "regexp"]],
35
+ [/(\,)(\s*)(@regEx)/, [
36
+ "delimiter",
37
+ "",
38
+ "regexp"
39
+ ]],
40
+ [/(\:)(\s*)(@regEx)/, [
41
+ "delimiter",
42
+ "",
43
+ "regexp"
44
+ ]],
45
+ [/@symbols/, "delimiter"],
46
+ [/\d+[eE]([\-+]?\d+)?/, "number.float"],
47
+ [/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
48
+ [/0[xX][0-9a-fA-F]+/, "number.hex"],
49
+ [/0[0-7]+(?!\d)/, "number.octal"],
50
+ [/\d+/, "number"],
51
+ [/[,.]/, "delimiter"],
52
+ [
53
+ /"""/,
54
+ "string",
55
+ "@herestring.\"\"\""
56
+ ],
57
+ [
58
+ /'''/,
59
+ "string",
60
+ "@herestring.'''"
61
+ ],
62
+ [/"/, { cases: {
63
+ "@eos": "string",
64
+ "@default": {
65
+ token: "string",
66
+ next: "@string.\""
67
+ }
68
+ } }],
69
+ [/'/, { cases: {
70
+ "@eos": "string",
71
+ "@default": {
72
+ token: "string",
73
+ next: "@string.'"
74
+ }
75
+ } }]
76
+ ],
77
+ string: [
78
+ [/[^"'\#\\]+/, "string"],
79
+ [/@escapes/, "string.escape"],
80
+ [/\./, "string.escape.invalid"],
81
+ [/\./, "string.escape.invalid"],
82
+ [/#{/, { cases: {
83
+ "$S2==\"": {
84
+ token: "string",
85
+ next: "root.interpolatedstring"
86
+ },
87
+ "@default": "string"
88
+ } }],
89
+ [/["']/, { cases: {
90
+ "$#==$S2": {
91
+ token: "string",
92
+ next: "@pop"
93
+ },
94
+ "@default": "string"
95
+ } }],
96
+ [/#/, "string"]
97
+ ],
98
+ herestring: [
99
+ [/("""|''')/, { cases: {
100
+ "$1==$S2": {
101
+ token: "string",
102
+ next: "@pop"
103
+ },
104
+ "@default": "string"
105
+ } }],
106
+ [/[^#\\'"]+/, "string"],
107
+ [/['"]+/, "string"],
108
+ [/@escapes/, "string.escape"],
109
+ [/\./, "string.escape.invalid"],
110
+ [/#{/, {
111
+ token: "string.quote",
112
+ next: "root.interpolatedstring"
113
+ }],
114
+ [/#/, "string"]
115
+ ],
116
+ comment: [[/[^#]+/, "comment"], [/#/, "comment"]],
117
+ hereregexp: [
118
+ [/[^\\\/#]+/, "regexp"],
119
+ [/\\./, "regexp"],
120
+ [/#.*$/, "comment"],
121
+ ["///[igm]*", {
122
+ token: "regexp",
123
+ next: "@pop"
124
+ }],
125
+ [/\//, "regexp"]
126
+ ]
127
+ }
128
+ };
129
+ //#endregion
130
+ export { e as conf, t as language };