@univerjs/uniscript 0.4.0-alpha.0 → 0.4.0-alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. package/lib/abap-BZS-1p12.js +6 -0
  2. package/lib/abap-D8H3nII2.mjs +1404 -0
  3. package/lib/apex-B2xdRF0k.js +6 -0
  4. package/lib/apex-BVHYDV51.mjs +334 -0
  5. package/lib/azcli-BwJ4gbR1.mjs +74 -0
  6. package/lib/azcli-CKk2q0zF.js +6 -0
  7. package/lib/bat-BDmMqWXx.mjs +106 -0
  8. package/lib/bat-Ehz5Z_mk.js +6 -0
  9. package/lib/bicep-B5L2IbSj.mjs +110 -0
  10. package/lib/bicep-WbLMPUMj.js +7 -0
  11. package/lib/cameligo-B_ldnAvM.js +6 -0
  12. package/lib/cameligo-CmyOPZUd.mjs +180 -0
  13. package/lib/cjs/index.js +1 -9
  14. package/lib/clojure-Dg-qgg-1.js +6 -0
  15. package/lib/clojure-iSXHsTlR.mjs +767 -0
  16. package/lib/coffee-BCg0pb49.js +6 -0
  17. package/lib/coffee-BUCk2FHC.mjs +238 -0
  18. package/lib/cpp-CJWZ7Zo7.js +6 -0
  19. package/lib/cpp-MUyeqRt5.mjs +395 -0
  20. package/lib/csharp-B9vyMfVU.mjs +332 -0
  21. package/lib/csharp-BZypj8XG.js +6 -0
  22. package/lib/csp-BfXxGnNN.js +6 -0
  23. package/lib/csp-CbylPXe5.mjs +59 -0
  24. package/lib/css-BPDnvT2s.js +8 -0
  25. package/lib/css-BQSMT8k7.mjs +193 -0
  26. package/lib/cssMode-B_of5tVd.js +9 -0
  27. package/lib/cssMode-BuX-eUHc.mjs +1604 -0
  28. package/lib/cypher-3bNWMNCJ.js +6 -0
  29. package/lib/cypher-D7IWy_82.mjs +269 -0
  30. package/lib/dart-BCVbUKaH.mjs +287 -0
  31. package/lib/dart-C9Glm5m-.js +6 -0
  32. package/lib/dockerfile-CjnlcV5o.js +6 -0
  33. package/lib/dockerfile-D2-hSnDX.mjs +136 -0
  34. package/lib/ecl-DRJlPmOb.mjs +462 -0
  35. package/lib/ecl-UyoSfv7F.js +6 -0
  36. package/lib/elixir-Bol0p0Ia.js +6 -0
  37. package/lib/elixir-D8NBXKCb.mjs +575 -0
  38. package/lib/es/index.js +5 -262
  39. package/lib/flow9-Be1OUdJl.js +6 -0
  40. package/lib/flow9-Dp7h8rKW.mjs +148 -0
  41. package/lib/freemarker2-D8-fH4uC.mjs +1001 -0
  42. package/lib/freemarker2-S5ay_GEf.js +8 -0
  43. package/lib/fsharp-CJxdVP7r.mjs +223 -0
  44. package/lib/fsharp-CKIYWNYJ.js +6 -0
  45. package/lib/go-DWj6zslQ.js +6 -0
  46. package/lib/go-IPaMO3Uz.mjs +224 -0
  47. package/lib/graphql-BzJpwfxN.js +6 -0
  48. package/lib/graphql-CMoDK5uf.mjs +157 -0
  49. package/lib/handlebars-CEMNnGaU.mjs +427 -0
  50. package/lib/handlebars-CM3PRDRO.js +6 -0
  51. package/lib/hcl-BCY6T0iq.js +6 -0
  52. package/lib/hcl-BTAYK4pT.mjs +189 -0
  53. package/lib/html-BSUn7oJR.mjs +316 -0
  54. package/lib/html-Df-Osxjs.js +6 -0
  55. package/lib/htmlMode-Bj4CfAzA.js +9 -0
  56. package/lib/htmlMode-xJPwX0cD.mjs +1615 -0
  57. package/lib/index-D6nY5NdF.mjs +116821 -0
  58. package/lib/index-rYV4VmC2.js +1163 -0
  59. package/lib/index.css +1 -1
  60. package/lib/ini-CC3_THb4.js +6 -0
  61. package/lib/ini-CiaphB6F.mjs +77 -0
  62. package/lib/java-CwRV8Dsg.js +6 -0
  63. package/lib/java-DxksziCw.mjs +238 -0
  64. package/lib/javascript-D1eKEotE.js +6 -0
  65. package/lib/javascript-c8D1_K05.mjs +76 -0
  66. package/lib/jsonMode-8-L3-E9k.mjs +2042 -0
  67. package/lib/jsonMode-BdBVsN9_.js +15 -0
  68. package/lib/julia-7Z1jwT4W.js +6 -0
  69. package/lib/julia-TTty8och.mjs +517 -0
  70. package/lib/kotlin-BAXgl2QX.js +6 -0
  71. package/lib/kotlin-Dzand-bM.mjs +259 -0
  72. package/lib/less-CSG9Zdoy.js +7 -0
  73. package/lib/less-CWDFQI_i.mjs +168 -0
  74. package/lib/lexon-BiTtMD9F.js +6 -0
  75. package/lib/lexon-bZpjZioh.mjs +163 -0
  76. package/lib/liquid-BmlJOXgY.js +6 -0
  77. package/lib/liquid-Bs7DM5cg.mjs +248 -0
  78. package/lib/lua-CoWYKXUu.mjs +168 -0
  79. package/lib/lua-o7UTFJ05.js +6 -0
  80. package/lib/m3-DIJY3uEe.mjs +216 -0
  81. package/lib/m3-DOYTRLxi.js +6 -0
  82. package/lib/markdown-CDlkMTMZ.mjs +235 -0
  83. package/lib/markdown-Di5faXtP.js +6 -0
  84. package/lib/mdx-BEI71kqO.mjs +173 -0
  85. package/lib/mdx-DJV2KJ98.js +6 -0
  86. package/lib/mips-CIiuS33B.mjs +204 -0
  87. package/lib/mips-CjGjcf9D.js +6 -0
  88. package/lib/msdax-4_jBeazN.mjs +381 -0
  89. package/lib/msdax-DZFpIwAH.js +6 -0
  90. package/lib/mysql-6Y0DL_eO.js +6 -0
  91. package/lib/mysql-D_KZRjSR.mjs +884 -0
  92. package/lib/objective-c-7nsY1fc1.mjs +189 -0
  93. package/lib/objective-c-BtrzMwBz.js +6 -0
  94. package/lib/pascal-BF06Dt9I.js +6 -0
  95. package/lib/pascal-BHpF9PW1.mjs +257 -0
  96. package/lib/pascaligo-BDrxVOcH.js +6 -0
  97. package/lib/pascaligo-C3mRbxmU.mjs +170 -0
  98. package/lib/perl-BMlqAyyD.js +6 -0
  99. package/lib/perl-F3tWDMLI.mjs +632 -0
  100. package/lib/pgsql-D62t1RD_.mjs +857 -0
  101. package/lib/pgsql-DXYBcnYD.js +6 -0
  102. package/lib/php-C8GGPjjI.mjs +506 -0
  103. package/lib/php-DmDmMNs3.js +6 -0
  104. package/lib/pla-2A6q3K8_.js +6 -0
  105. package/lib/pla-C_W_x2fV.mjs +143 -0
  106. package/lib/postiats-CMS8WwLg.mjs +913 -0
  107. package/lib/postiats-DQ-6iLGI.js +6 -0
  108. package/lib/powerquery-CuZPk7NC.js +6 -0
  109. package/lib/powerquery-Dcs0XplE.mjs +896 -0
  110. package/lib/powershell-Brx1N_3T.mjs +245 -0
  111. package/lib/powershell-D7BqJxnS.js +6 -0
  112. package/lib/protobuf-CkqkhuUG.js +7 -0
  113. package/lib/protobuf-UEJDuX6l.mjs +426 -0
  114. package/lib/pug-65DF18O8.js +6 -0
  115. package/lib/pug-LDwDmrMc.mjs +408 -0
  116. package/lib/python-BOeTitp9.mjs +309 -0
  117. package/lib/python-DRyE-VQQ.js +6 -0
  118. package/lib/qsharp-Cb7hPwnM.mjs +307 -0
  119. package/lib/qsharp-Dw07PXbd.js +6 -0
  120. package/lib/r-BHuY0po5.js +6 -0
  121. package/lib/r-BiFgSgcs.mjs +249 -0
  122. package/lib/razor-D0RPXCAO.mjs +558 -0
  123. package/lib/razor-DtDOotKq.js +6 -0
  124. package/lib/redis-BdzqoKC2.mjs +308 -0
  125. package/lib/redis-_Q4kv9ug.js +6 -0
  126. package/lib/redshift-DNNCHCLR.js +6 -0
  127. package/lib/redshift-Df6PoiEL.mjs +815 -0
  128. package/lib/restructuredtext-C9FM3r80.js +6 -0
  129. package/lib/restructuredtext-CW0ZtQ2l.mjs +180 -0
  130. package/lib/ruby-DyIFepcy.mjs +517 -0
  131. package/lib/ruby-DyJmXCYh.js +6 -0
  132. package/lib/rust-BiRHKB0S.mjs +349 -0
  133. package/lib/rust-DVvzZ_uH.js +6 -0
  134. package/lib/sb-CFwmZh3c.js +6 -0
  135. package/lib/sb-CahkGwPC.mjs +121 -0
  136. package/lib/scala-Cg9Wfw6B.mjs +376 -0
  137. package/lib/scala-DjaRe0PR.js +6 -0
  138. package/lib/scheme-Bqb0wlMX.mjs +114 -0
  139. package/lib/scheme-ZdeLzG0d.js +6 -0
  140. package/lib/scss-3qd2syug.mjs +268 -0
  141. package/lib/scss-Dqv1RljX.js +8 -0
  142. package/lib/shell-B5iW6U-v.mjs +227 -0
  143. package/lib/shell-BJ5zD_-e.js +6 -0
  144. package/lib/solidity-8Ys0iSgd.mjs +1373 -0
  145. package/lib/solidity-CagYWQAe.js +6 -0
  146. package/lib/sophia-PnZfErC3.mjs +205 -0
  147. package/lib/sophia-szuux90p.js +6 -0
  148. package/lib/sparql-CXz1-gkd.js +6 -0
  149. package/lib/sparql-CgWX-KRM.mjs +207 -0
  150. package/lib/sql-CN3Vg4Sm.mjs +859 -0
  151. package/lib/sql-CWZ5x4mg.js +6 -0
  152. package/lib/st-CcWMPoh3.js +6 -0
  153. package/lib/st-DKDuarOh.mjs +422 -0
  154. package/lib/swift-DUBoAkDR.js +8 -0
  155. package/lib/swift-DnXH6Con.mjs +318 -0
  156. package/lib/systemverilog-5hQzl-99.js +6 -0
  157. package/lib/systemverilog-pJOgZU46.mjs +582 -0
  158. package/lib/tcl-Bls9iNXn.mjs +238 -0
  159. package/lib/tcl-CiK0GhJi.js +6 -0
  160. package/lib/tsMode-BB2mDc5d.mjs +906 -0
  161. package/lib/tsMode-N-LS5RKx.js +16 -0
  162. package/lib/twig-B14HEeE0.mjs +398 -0
  163. package/lib/twig-Cbq-Ua-E.js +6 -0
  164. package/lib/typescript-CZplv8KD.js +6 -0
  165. package/lib/typescript-f9PHTVoW.mjs +351 -0
  166. package/lib/typespec-Br_LC070.js +6 -0
  167. package/lib/typespec-dAaIdBal.mjs +125 -0
  168. package/lib/umd/index.js +1914 -2
  169. package/lib/vb-B1HzwoGL.js +6 -0
  170. package/lib/vb-CPBujGrP.mjs +378 -0
  171. package/lib/wgsl-BNAUPMiJ.js +303 -0
  172. package/lib/wgsl-CqCqdnZC.mjs +448 -0
  173. package/lib/xml-BSe-ETnG.js +6 -0
  174. package/lib/xml-Dv0cmUxw.mjs +103 -0
  175. package/lib/yaml-O_DoXtBP.js +6 -0
  176. package/lib/yaml-eXS7QSgG.mjs +214 -0
  177. package/package.json +10 -17
@@ -0,0 +1,235 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/
7
+ var conf = {
8
+ comments: {
9
+ blockComment: ["<!--", "-->"]
10
+ },
11
+ brackets: [
12
+ ["{", "}"],
13
+ ["[", "]"],
14
+ ["(", ")"]
15
+ ],
16
+ autoClosingPairs: [
17
+ { open: "{", close: "}" },
18
+ { open: "[", close: "]" },
19
+ { open: "(", close: ")" },
20
+ { open: "<", close: ">", notIn: ["string"] }
21
+ ],
22
+ surroundingPairs: [
23
+ { open: "(", close: ")" },
24
+ { open: "[", close: "]" },
25
+ { open: "`", close: "`" }
26
+ ],
27
+ folding: {
28
+ markers: {
29
+ start: new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),
30
+ end: new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")
31
+ }
32
+ }
33
+ }, language = {
34
+ defaultToken: "",
35
+ tokenPostfix: ".md",
36
+ // escape codes
37
+ control: /[\\`*_\[\]{}()#+\-\.!]/,
38
+ noncontrol: /[^\\`*_\[\]{}()#+\-\.!]/,
39
+ escapes: /\\(?:@control)/,
40
+ // escape codes for javascript/CSS strings
41
+ jsescapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
42
+ // non matched elements
43
+ empty: [
44
+ "area",
45
+ "base",
46
+ "basefont",
47
+ "br",
48
+ "col",
49
+ "frame",
50
+ "hr",
51
+ "img",
52
+ "input",
53
+ "isindex",
54
+ "link",
55
+ "meta",
56
+ "param"
57
+ ],
58
+ tokenizer: {
59
+ root: [
60
+ // markdown tables
61
+ [/^\s*\|/, "@rematch", "@table_header"],
62
+ // headers (with #)
63
+ [/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/, ["white", "keyword", "keyword", "keyword"]],
64
+ // headers (with =)
65
+ [/^\s*(=+|\-+)\s*$/, "keyword"],
66
+ // headers (with ***)
67
+ [/^\s*((\*[ ]?)+)\s*$/, "meta.separator"],
68
+ // quote
69
+ [/^\s*>+/, "comment"],
70
+ // list (starting with * or number)
71
+ [/^\s*([\*\-+:]|\d+\.)\s/, "keyword"],
72
+ // code block (4 spaces indent)
73
+ [/^(\t|[ ]{4})[^ ].*$/, "string"],
74
+ // code block (3 tilde)
75
+ [/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, { token: "string", next: "@codeblock" }],
76
+ // github style code blocks (with backticks and language)
77
+ [
78
+ /^\s*```\s*((?:\w|[\/\-#])+).*$/,
79
+ { token: "string", next: "@codeblockgh", nextEmbedded: "$1" }
80
+ ],
81
+ // github style code blocks (with backticks but no language)
82
+ [/^\s*```\s*$/, { token: "string", next: "@codeblock" }],
83
+ // markup within lines
84
+ { include: "@linecontent" }
85
+ ],
86
+ table_header: [
87
+ { include: "@table_common" },
88
+ [/[^\|]+/, "keyword.table.header"]
89
+ // table header
90
+ ],
91
+ table_body: [{ include: "@table_common" }, { include: "@linecontent" }],
92
+ table_common: [
93
+ [/\s*[\-:]+\s*/, { token: "keyword", switchTo: "table_body" }],
94
+ // header-divider
95
+ [/^\s*\|/, "keyword.table.left"],
96
+ // opening |
97
+ [/^\s*[^\|]/, "@rematch", "@pop"],
98
+ // exiting
99
+ [/^\s*$/, "@rematch", "@pop"],
100
+ // exiting
101
+ [
102
+ /\|/,
103
+ {
104
+ cases: {
105
+ "@eos": "keyword.table.right",
106
+ // closing |
107
+ "@default": "keyword.table.middle"
108
+ // inner |
109
+ }
110
+ }
111
+ ]
112
+ ],
113
+ codeblock: [
114
+ [/^\s*~~~\s*$/, { token: "string", next: "@pop" }],
115
+ [/^\s*```\s*$/, { token: "string", next: "@pop" }],
116
+ [/.*$/, "variable.source"]
117
+ ],
118
+ // github style code blocks
119
+ codeblockgh: [
120
+ [/```\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
121
+ [/[^`]+/, "variable.source"]
122
+ ],
123
+ linecontent: [
124
+ // escapes
125
+ [/&\w+;/, "string.escape"],
126
+ [/@escapes/, "escape"],
127
+ // various markup
128
+ [/\b__([^\\_]|@escapes|_(?!_))+__\b/, "strong"],
129
+ [/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/, "strong"],
130
+ [/\b_[^_]+_\b/, "emphasis"],
131
+ [/\*([^\\*]|@escapes)+\*/, "emphasis"],
132
+ [/`([^\\`]|@escapes)+`/, "variable"],
133
+ // links
134
+ [/\{+[^}]+\}+/, "string.target"],
135
+ [/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/, ["string.link", "", "string.link"]],
136
+ [/(!?\[)((?:[^\]\\]|@escapes)*)(\])/, "string.link"],
137
+ // or html
138
+ { include: "html" }
139
+ ],
140
+ // Note: it is tempting to rather switch to the real HTML mode instead of building our own here
141
+ // but currently there is a limitation in Monarch that prevents us from doing it: The opening
142
+ // '<' would start the HTML mode, however there is no way to jump 1 character back to let the
143
+ // HTML mode also tokenize the opening angle bracket. Thus, even though we could jump to HTML,
144
+ // we cannot correctly tokenize it in that mode yet.
145
+ html: [
146
+ // html tags
147
+ [/<(\w+)\/>/, "tag"],
148
+ [
149
+ /<(\w+)(\-|\w)*/,
150
+ {
151
+ cases: {
152
+ "@empty": { token: "tag", next: "@tag.$1" },
153
+ "@default": { token: "tag", next: "@tag.$1" }
154
+ }
155
+ }
156
+ ],
157
+ [/<\/(\w+)(\-|\w)*\s*>/, { token: "tag" }],
158
+ [/<!--/, "comment", "@comment"]
159
+ ],
160
+ comment: [
161
+ [/[^<\-]+/, "comment.content"],
162
+ [/-->/, "comment", "@pop"],
163
+ [/<!--/, "comment.content.invalid"],
164
+ [/[<\-]/, "comment.content"]
165
+ ],
166
+ // Almost full HTML tag matching, complete with embedded scripts & styles
167
+ tag: [
168
+ [/[ \t\r\n]+/, "white"],
169
+ [
170
+ /(type)(\s*=\s*)(")([^"]+)(")/,
171
+ [
172
+ "attribute.name.html",
173
+ "delimiter.html",
174
+ "string.html",
175
+ { token: "string.html", switchTo: "@tag.$S2.$4" },
176
+ "string.html"
177
+ ]
178
+ ],
179
+ [
180
+ /(type)(\s*=\s*)(')([^']+)(')/,
181
+ [
182
+ "attribute.name.html",
183
+ "delimiter.html",
184
+ "string.html",
185
+ { token: "string.html", switchTo: "@tag.$S2.$4" },
186
+ "string.html"
187
+ ]
188
+ ],
189
+ [/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name.html", "delimiter.html", "string.html"]],
190
+ [/\w+/, "attribute.name.html"],
191
+ [/\/>/, "tag", "@pop"],
192
+ [
193
+ />/,
194
+ {
195
+ cases: {
196
+ "$S2==style": {
197
+ token: "tag",
198
+ switchTo: "embeddedStyle",
199
+ nextEmbedded: "text/css"
200
+ },
201
+ "$S2==script": {
202
+ cases: {
203
+ $S3: {
204
+ token: "tag",
205
+ switchTo: "embeddedScript",
206
+ nextEmbedded: "$S3"
207
+ },
208
+ "@default": {
209
+ token: "tag",
210
+ switchTo: "embeddedScript",
211
+ nextEmbedded: "text/javascript"
212
+ }
213
+ }
214
+ },
215
+ "@default": { token: "tag", next: "@pop" }
216
+ }
217
+ }
218
+ ]
219
+ ],
220
+ embeddedStyle: [
221
+ [/[^<]+/, ""],
222
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
223
+ [/</, ""]
224
+ ],
225
+ embeddedScript: [
226
+ [/[^<]+/, ""],
227
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
228
+ [/</, ""]
229
+ ]
230
+ }
231
+ };
232
+ export {
233
+ conf,
234
+ language
235
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var conf={comments:{blockComment:["<!--","-->"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")}}},language={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name.html","delimiter.html","string.html"]],[/\w+/,"attribute.name.html"],[/\/>/,"tag","@pop"],[/>/,{cases:{"$S2==style":{token:"tag",switchTo:"embeddedStyle",nextEmbedded:"text/css"},"$S2==script":{cases:{$S3:{token:"tag",switchTo:"embeddedScript",nextEmbedded:"$S3"},"@default":{token:"tag",switchTo:"embeddedScript",nextEmbedded:"text/javascript"}}},"@default":{token:"tag",next:"@pop"}}}]],embeddedStyle:[[/[^<]+/,""],[/<\/style\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]],embeddedScript:[[/[^<]+/,""],[/<\/script\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]]}};exports.conf=conf;exports.language=language;
@@ -0,0 +1,173 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
3
+ import { m as monaco_editor_core_star } from "./index-D6nY5NdF.mjs";
4
+ /*!-----------------------------------------------------------------------------
5
+ * Copyright (c) Microsoft Corporation. All rights reserved.
6
+ * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
7
+ * Released under the MIT license
8
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
+ *-----------------------------------------------------------------------------*/
10
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = /* @__PURE__ */ __name((to, from, except, desc) => {
11
+ if (from && typeof from == "object" || typeof from == "function")
12
+ for (let key of __getOwnPropNames(from))
13
+ !__hasOwnProp.call(to, key) && key !== except && __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ return to;
15
+ }, "__copyProps"), __reExport = /* @__PURE__ */ __name((target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget), "__reExport"), monaco_editor_core_exports = {};
16
+ __reExport(monaco_editor_core_exports, monaco_editor_core_star);
17
+ var conf = {
18
+ comments: {
19
+ blockComment: ["{/*", "*/}"]
20
+ },
21
+ brackets: [["{", "}"]],
22
+ autoClosingPairs: [
23
+ { open: '"', close: '"' },
24
+ { open: "'", close: "'" },
25
+ { open: "“", close: "”" },
26
+ { open: "‘", close: "’" },
27
+ { open: "`", close: "`" },
28
+ { open: "{", close: "}" },
29
+ { open: "(", close: ")" },
30
+ { open: "_", close: "_" },
31
+ { open: "**", close: "**" },
32
+ { open: "<", close: ">" }
33
+ ],
34
+ onEnterRules: [
35
+ {
36
+ beforeText: /^\s*- .+/,
37
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.None, appendText: "- " }
38
+ },
39
+ {
40
+ beforeText: /^\s*\+ .+/,
41
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.None, appendText: "+ " }
42
+ },
43
+ {
44
+ beforeText: /^\s*\* .+/,
45
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.None, appendText: "* " }
46
+ },
47
+ {
48
+ beforeText: /^> /,
49
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.None, appendText: "> " }
50
+ },
51
+ {
52
+ beforeText: /<\w+/,
53
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
54
+ },
55
+ {
56
+ beforeText: /\s+>\s*$/,
57
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
58
+ },
59
+ {
60
+ beforeText: /<\/\w+>/,
61
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Outdent }
62
+ },
63
+ ...Array.from({ length: 100 }, (_, index) => ({
64
+ beforeText: new RegExp(`^${index}\\. .+`),
65
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.None, appendText: `${index + 1}. ` }
66
+ }))
67
+ ]
68
+ }, language = {
69
+ defaultToken: "",
70
+ tokenPostfix: ".mdx",
71
+ control: /[!#()*+.[\\\]_`{}\-]/,
72
+ escapes: /\\@control/,
73
+ tokenizer: {
74
+ root: [
75
+ [/^---$/, { token: "meta.content", next: "@frontmatter", nextEmbedded: "yaml" }],
76
+ [/^\s*import/, { token: "keyword", next: "@import", nextEmbedded: "js" }],
77
+ [/^\s*export/, { token: "keyword", next: "@export", nextEmbedded: "js" }],
78
+ [/<\w+/, { token: "type.identifier", next: "@jsx" }],
79
+ [/<\/?\w+>/, "type.identifier"],
80
+ [
81
+ /^(\s*)(>*\s*)(#{1,6}\s)/,
82
+ [{ token: "white" }, { token: "comment" }, { token: "keyword", next: "@header" }]
83
+ ],
84
+ [/^(\s*)(>*\s*)([*+-])(\s+)/, ["white", "comment", "keyword", "white"]],
85
+ [/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
86
+ [/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
87
+ [/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/, ["white", "comment", "keyword"]],
88
+ [/`{3,}(\s.*)?$/, { token: "string", next: "@codeblock_backtick" }],
89
+ [/~{3,}(\s.*)?$/, { token: "string", next: "@codeblock_tilde" }],
90
+ [
91
+ /`{3,}(\S+).*$/,
92
+ { token: "string", next: "@codeblock_highlight_backtick", nextEmbedded: "$1" }
93
+ ],
94
+ [
95
+ /~{3,}(\S+).*$/,
96
+ { token: "string", next: "@codeblock_highlight_tilde", nextEmbedded: "$1" }
97
+ ],
98
+ [/^(\s*)(-{4,})$/, ["white", "comment"]],
99
+ [/^(\s*)(>+)/, ["white", "comment"]],
100
+ { include: "content" }
101
+ ],
102
+ content: [
103
+ [
104
+ /(\[)(.+)(]\()(.+)(\s+".*")(\))/,
105
+ ["", "string.link", "", "type.identifier", "string.link", ""]
106
+ ],
107
+ [/(\[)(.+)(]\()(.+)(\))/, ["", "type.identifier", "", "string.link", ""]],
108
+ [/(\[)(.+)(]\[)(.+)(])/, ["", "type.identifier", "", "type.identifier", ""]],
109
+ [/(\[)(.+)(]:\s+)(\S*)/, ["", "type.identifier", "", "string.link"]],
110
+ [/(\[)(.+)(])/, ["", "type.identifier", ""]],
111
+ [/`.*`/, "variable.source"],
112
+ [/_/, { token: "emphasis", next: "@emphasis_underscore" }],
113
+ [/\*(?!\*)/, { token: "emphasis", next: "@emphasis_asterisk" }],
114
+ [/\*\*/, { token: "strong", next: "@strong" }],
115
+ [/{/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }]
116
+ ],
117
+ import: [[/'\s*(;|$)/, { token: "string", next: "@pop", nextEmbedded: "@pop" }]],
118
+ expression: [
119
+ [/{/, { token: "delimiter.bracket", next: "@expression" }],
120
+ [/}/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]
121
+ ],
122
+ export: [[/^\s*$/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]],
123
+ jsx: [
124
+ [/\s+/, ""],
125
+ [/(\w+)(=)("(?:[^"\\]|\\.)*")/, ["attribute.name", "operator", "string"]],
126
+ [/(\w+)(=)('(?:[^'\\]|\\.)*')/, ["attribute.name", "operator", "string"]],
127
+ [/(\w+(?=\s|>|={|$))/, ["attribute.name"]],
128
+ [/={/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }],
129
+ [/>/, { token: "type.identifier", next: "@pop" }]
130
+ ],
131
+ header: [
132
+ [/.$/, { token: "keyword", next: "@pop" }],
133
+ { include: "content" },
134
+ [/./, { token: "keyword" }]
135
+ ],
136
+ strong: [
137
+ [/\*\*/, { token: "strong", next: "@pop" }],
138
+ { include: "content" },
139
+ [/./, { token: "strong" }]
140
+ ],
141
+ emphasis_underscore: [
142
+ [/_/, { token: "emphasis", next: "@pop" }],
143
+ { include: "content" },
144
+ [/./, { token: "emphasis" }]
145
+ ],
146
+ emphasis_asterisk: [
147
+ [/\*(?!\*)/, { token: "emphasis", next: "@pop" }],
148
+ { include: "content" },
149
+ [/./, { token: "emphasis" }]
150
+ ],
151
+ frontmatter: [[/^---$/, { token: "meta.content", nextEmbedded: "@pop", next: "@pop" }]],
152
+ codeblock_highlight_backtick: [
153
+ [/\s*`{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
154
+ [/.*$/, "variable.source"]
155
+ ],
156
+ codeblock_highlight_tilde: [
157
+ [/\s*~{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
158
+ [/.*$/, "variable.source"]
159
+ ],
160
+ codeblock_backtick: [
161
+ [/\s*`{3,}\s*$/, { token: "string", next: "@pop" }],
162
+ [/.*$/, "variable.source"]
163
+ ],
164
+ codeblock_tilde: [
165
+ [/\s*~{3,}\s*$/, { token: "string", next: "@pop" }],
166
+ [/.*$/, "variable.source"]
167
+ ]
168
+ }
169
+ };
170
+ export {
171
+ conf,
172
+ language
173
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const index=require("./index-rYV4VmC2.js");/*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var __defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=__name((to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp2(to,key,{get:__name(()=>from[key],"get"),enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},"__copyProps"),__reExport=__name((target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget),"__reExport"),monaco_editor_core_exports={};__reExport(monaco_editor_core_exports,index.monaco_editor_core_star);var conf={comments:{blockComment:["{/*","*/}"]},brackets:[["{","}"]],autoClosingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"“",close:"”"},{open:"‘",close:"’"},{open:"`",close:"`"},{open:"{",close:"}"},{open:"(",close:")"},{open:"_",close:"_"},{open:"**",close:"**"},{open:"<",close:">"}],onEnterRules:[{beforeText:/^\s*- .+/,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.None,appendText:"- "}},{beforeText:/^\s*\+ .+/,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.None,appendText:"+ "}},{beforeText:/^\s*\* .+/,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.None,appendText:"* "}},{beforeText:/^> /,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.None,appendText:"> "}},{beforeText:/<\w+/,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.Indent}},{beforeText:/\s+>\s*$/,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.Indent}},{beforeText:/<\/\w+>/,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.Outdent}},...Array.from({length:100},(_,index2)=>({beforeText:new RegExp(`^${index2}\\. .+`),action:{indentAction:monaco_editor_core_exports.languages.IndentAction.None,appendText:`${index2+1}. `}}))]},language={defaultToken:"",tokenPostfix:".mdx",control:/[!#()*+.[\\\]_`{}\-]/,escapes:/\\@control/,tokenizer:{root:[[/^---$/,{token:"meta.content",next:"@frontmatter",nextEmbedded:"yaml"}],[/^\s*import/,{token:"keyword",next:"@import",nextEmbedded:"js"}],[/^\s*export/,{token:"keyword",next:"@export",nextEmbedded:"js"}],[/<\w+/,{token:"type.identifier",next:"@jsx"}],[/<\/?\w+>/,"type.identifier"],[/^(\s*)(>*\s*)(#{1,6}\s)/,[{token:"white"},{token:"comment"},{token:"keyword",next:"@header"}]],[/^(\s*)(>*\s*)([*+-])(\s+)/,["white","comment","keyword","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/,["white","comment","keyword"]],[/`{3,}(\s.*)?$/,{token:"string",next:"@codeblock_backtick"}],[/~{3,}(\s.*)?$/,{token:"string",next:"@codeblock_tilde"}],[/`{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_backtick",nextEmbedded:"$1"}],[/~{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_tilde",nextEmbedded:"$1"}],[/^(\s*)(-{4,})$/,["white","comment"]],[/^(\s*)(>+)/,["white","comment"]],{include:"content"}],content:[[/(\[)(.+)(]\()(.+)(\s+".*")(\))/,["","string.link","","type.identifier","string.link",""]],[/(\[)(.+)(]\()(.+)(\))/,["","type.identifier","","string.link",""]],[/(\[)(.+)(]\[)(.+)(])/,["","type.identifier","","type.identifier",""]],[/(\[)(.+)(]:\s+)(\S*)/,["","type.identifier","","string.link"]],[/(\[)(.+)(])/,["","type.identifier",""]],[/`.*`/,"variable.source"],[/_/,{token:"emphasis",next:"@emphasis_underscore"}],[/\*(?!\*)/,{token:"emphasis",next:"@emphasis_asterisk"}],[/\*\*/,{token:"strong",next:"@strong"}],[/{/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}]],import:[[/'\s*(;|$)/,{token:"string",next:"@pop",nextEmbedded:"@pop"}]],expression:[[/{/,{token:"delimiter.bracket",next:"@expression"}],[/}/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],export:[[/^\s*$/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],jsx:[[/\s+/,""],[/(\w+)(=)("(?:[^"\\]|\\.)*")/,["attribute.name","operator","string"]],[/(\w+)(=)('(?:[^'\\]|\\.)*')/,["attribute.name","operator","string"]],[/(\w+(?=\s|>|={|$))/,["attribute.name"]],[/={/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}],[/>/,{token:"type.identifier",next:"@pop"}]],header:[[/.$/,{token:"keyword",next:"@pop"}],{include:"content"},[/./,{token:"keyword"}]],strong:[[/\*\*/,{token:"strong",next:"@pop"}],{include:"content"},[/./,{token:"strong"}]],emphasis_underscore:[[/_/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],emphasis_asterisk:[[/\*(?!\*)/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],frontmatter:[[/^---$/,{token:"meta.content",nextEmbedded:"@pop",next:"@pop"}]],codeblock_highlight_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_highlight_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblock_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]]}};exports.conf=conf;exports.language=language;
@@ -0,0 +1,204 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/
7
+ var conf = {
8
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
9
+ comments: {
10
+ blockComment: ["###", "###"],
11
+ lineComment: "#"
12
+ },
13
+ folding: {
14
+ markers: {
15
+ start: new RegExp("^\\s*#region\\b"),
16
+ end: new RegExp("^\\s*#endregion\\b")
17
+ }
18
+ }
19
+ }, language = {
20
+ defaultToken: "",
21
+ ignoreCase: !1,
22
+ tokenPostfix: ".mips",
23
+ regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
24
+ keywords: [
25
+ ".data",
26
+ ".text",
27
+ "syscall",
28
+ "trap",
29
+ "add",
30
+ "addu",
31
+ "addi",
32
+ "addiu",
33
+ "and",
34
+ "andi",
35
+ "div",
36
+ "divu",
37
+ "mult",
38
+ "multu",
39
+ "nor",
40
+ "or",
41
+ "ori",
42
+ "sll",
43
+ "slv",
44
+ "sra",
45
+ "srav",
46
+ "srl",
47
+ "srlv",
48
+ "sub",
49
+ "subu",
50
+ "xor",
51
+ "xori",
52
+ "lhi",
53
+ "lho",
54
+ "lhi",
55
+ "llo",
56
+ "slt",
57
+ "slti",
58
+ "sltu",
59
+ "sltiu",
60
+ "beq",
61
+ "bgtz",
62
+ "blez",
63
+ "bne",
64
+ "j",
65
+ "jal",
66
+ "jalr",
67
+ "jr",
68
+ "lb",
69
+ "lbu",
70
+ "lh",
71
+ "lhu",
72
+ "lw",
73
+ "li",
74
+ "la",
75
+ "sb",
76
+ "sh",
77
+ "sw",
78
+ "mfhi",
79
+ "mflo",
80
+ "mthi",
81
+ "mtlo",
82
+ "move"
83
+ ],
84
+ // we include these common regular expressions
85
+ symbols: /[\.,\:]+/,
86
+ escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
87
+ // The main tokenizer for our languages
88
+ tokenizer: {
89
+ root: [
90
+ // identifiers and keywords
91
+ [/\$[a-zA-Z_]\w*/, "variable.predefined"],
92
+ [
93
+ /[.a-zA-Z_]\w*/,
94
+ {
95
+ cases: {
96
+ this: "variable.predefined",
97
+ "@keywords": { token: "keyword.$0" },
98
+ "@default": ""
99
+ }
100
+ }
101
+ ],
102
+ // whitespace
103
+ [/[ \t\r\n]+/, ""],
104
+ // Comments
105
+ [/#.*$/, "comment"],
106
+ // regular expressions
107
+ ["///", { token: "regexp", next: "@hereregexp" }],
108
+ [/^(\s*)(@regEx)/, ["", "regexp"]],
109
+ [/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
110
+ [/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
111
+ // delimiters
112
+ [/@symbols/, "delimiter"],
113
+ // numbers
114
+ [/\d+[eE]([\-+]?\d+)?/, "number.float"],
115
+ [/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
116
+ [/0[xX][0-9a-fA-F]+/, "number.hex"],
117
+ [/0[0-7]+(?!\d)/, "number.octal"],
118
+ [/\d+/, "number"],
119
+ // delimiter: after number because of .\d floats
120
+ [/[,.]/, "delimiter"],
121
+ // strings:
122
+ [/"""/, "string", '@herestring."""'],
123
+ [/'''/, "string", "@herestring.'''"],
124
+ [
125
+ /"/,
126
+ {
127
+ cases: {
128
+ "@eos": "string",
129
+ "@default": { token: "string", next: '@string."' }
130
+ }
131
+ }
132
+ ],
133
+ [
134
+ /'/,
135
+ {
136
+ cases: {
137
+ "@eos": "string",
138
+ "@default": { token: "string", next: "@string.'" }
139
+ }
140
+ }
141
+ ]
142
+ ],
143
+ string: [
144
+ [/[^"'\#\\]+/, "string"],
145
+ [/@escapes/, "string.escape"],
146
+ [/\./, "string.escape.invalid"],
147
+ [/\./, "string.escape.invalid"],
148
+ [
149
+ /#{/,
150
+ {
151
+ cases: {
152
+ '$S2=="': {
153
+ token: "string",
154
+ next: "root.interpolatedstring"
155
+ },
156
+ "@default": "string"
157
+ }
158
+ }
159
+ ],
160
+ [
161
+ /["']/,
162
+ {
163
+ cases: {
164
+ "$#==$S2": { token: "string", next: "@pop" },
165
+ "@default": "string"
166
+ }
167
+ }
168
+ ],
169
+ [/#/, "string"]
170
+ ],
171
+ herestring: [
172
+ [
173
+ /("""|''')/,
174
+ {
175
+ cases: {
176
+ "$1==$S2": { token: "string", next: "@pop" },
177
+ "@default": "string"
178
+ }
179
+ }
180
+ ],
181
+ [/[^#\\'"]+/, "string"],
182
+ [/['"]+/, "string"],
183
+ [/@escapes/, "string.escape"],
184
+ [/\./, "string.escape.invalid"],
185
+ [/#{/, { token: "string.quote", next: "root.interpolatedstring" }],
186
+ [/#/, "string"]
187
+ ],
188
+ comment: [
189
+ [/[^#]+/, "comment"],
190
+ [/#/, "comment"]
191
+ ],
192
+ hereregexp: [
193
+ [/[^\\\/#]+/, "regexp"],
194
+ [/\\./, "regexp"],
195
+ [/#.*$/, "comment"],
196
+ ["///[igm]*", { token: "regexp", next: "@pop" }],
197
+ [/\//, "regexp"]
198
+ ]
199
+ }
200
+ };
201
+ export {
202
+ conf,
203
+ language
204
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},language={defaultToken:"",ignoreCase:!1,tokenPostfix:".mips",regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:[".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"],symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,"variable.predefined"],[/[.a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}};exports.conf=conf;exports.language=language;