@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,189 @@
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
+ lineComment: "#",
10
+ blockComment: ["/*", "*/"]
11
+ },
12
+ brackets: [
13
+ ["{", "}"],
14
+ ["[", "]"],
15
+ ["(", ")"]
16
+ ],
17
+ autoClosingPairs: [
18
+ { open: "{", close: "}" },
19
+ { open: "[", close: "]" },
20
+ { open: "(", close: ")" },
21
+ { open: '"', close: '"', notIn: ["string"] }
22
+ ],
23
+ surroundingPairs: [
24
+ { open: "{", close: "}" },
25
+ { open: "[", close: "]" },
26
+ { open: "(", close: ")" },
27
+ { open: '"', close: '"' }
28
+ ]
29
+ }, language = {
30
+ defaultToken: "",
31
+ tokenPostfix: ".hcl",
32
+ keywords: [
33
+ "var",
34
+ "local",
35
+ "path",
36
+ "for_each",
37
+ "any",
38
+ "string",
39
+ "number",
40
+ "bool",
41
+ "true",
42
+ "false",
43
+ "null",
44
+ "if ",
45
+ "else ",
46
+ "endif ",
47
+ "for ",
48
+ "in",
49
+ "endfor"
50
+ ],
51
+ operators: [
52
+ "=",
53
+ ">=",
54
+ "<=",
55
+ "==",
56
+ "!=",
57
+ "+",
58
+ "-",
59
+ "*",
60
+ "/",
61
+ "%",
62
+ "&&",
63
+ "||",
64
+ "!",
65
+ "<",
66
+ ">",
67
+ "?",
68
+ "...",
69
+ ":"
70
+ ],
71
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
72
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
73
+ terraformFunctions: /(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,
74
+ terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/,
75
+ tokenizer: {
76
+ root: [
77
+ // highlight main blocks
78
+ [
79
+ /^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
80
+ ["type", "", "string", "", "string", "", "@brackets"]
81
+ ],
82
+ // highlight all the remaining blocks
83
+ [
84
+ /(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
85
+ ["identifier", "", "string", "", "string", "", "@brackets"]
86
+ ],
87
+ // highlight block
88
+ [
89
+ /(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,
90
+ ["identifier", "", "string", "", "operator", "", "@brackets"]
91
+ ],
92
+ // terraform general highlight - shared with expressions
93
+ { include: "@terraform" }
94
+ ],
95
+ terraform: [
96
+ // highlight terraform functions
97
+ [/@terraformFunctions(\()/, ["type", "@brackets"]],
98
+ // all other words are variables or keywords
99
+ [
100
+ /[a-zA-Z_]\w*-*/,
101
+ // must work with variables such as foo-bar and also with negative numbers
102
+ {
103
+ cases: {
104
+ "@keywords": { token: "keyword.$0" },
105
+ "@default": "variable"
106
+ }
107
+ }
108
+ ],
109
+ { include: "@whitespace" },
110
+ { include: "@heredoc" },
111
+ // delimiters and operators
112
+ [/[{}()\[\]]/, "@brackets"],
113
+ [/[<>](?!@symbols)/, "@brackets"],
114
+ [
115
+ /@symbols/,
116
+ {
117
+ cases: {
118
+ "@operators": "operator",
119
+ "@default": ""
120
+ }
121
+ }
122
+ ],
123
+ // numbers
124
+ [/\d*\d+[eE]([\-+]?\d+)?/, "number.float"],
125
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
126
+ [/\d[\d']*/, "number"],
127
+ [/\d/, "number"],
128
+ [/[;,.]/, "delimiter"],
129
+ // delimiter: after number because of .\d floats
130
+ // strings
131
+ [/"/, "string", "@string"],
132
+ // this will include expressions
133
+ [/'/, "invalid"]
134
+ ],
135
+ heredoc: [
136
+ [/<<[-]*\s*["]?([\w\-]+)["]?/, { token: "string.heredoc.delimiter", next: "@heredocBody.$1" }]
137
+ ],
138
+ heredocBody: [
139
+ [
140
+ /([\w\-]+)$/,
141
+ {
142
+ cases: {
143
+ "$1==$S2": [
144
+ {
145
+ token: "string.heredoc.delimiter",
146
+ next: "@popall"
147
+ }
148
+ ],
149
+ "@default": "string.heredoc"
150
+ }
151
+ }
152
+ ],
153
+ [/./, "string.heredoc"]
154
+ ],
155
+ whitespace: [
156
+ [/[ \t\r\n]+/, ""],
157
+ [/\/\*/, "comment", "@comment"],
158
+ [/\/\/.*$/, "comment"],
159
+ [/#.*$/, "comment"]
160
+ ],
161
+ comment: [
162
+ [/[^\/*]+/, "comment"],
163
+ [/\*\//, "comment", "@pop"],
164
+ [/[\/*]/, "comment"]
165
+ ],
166
+ string: [
167
+ [/\$\{/, { token: "delimiter", next: "@stringExpression" }],
168
+ [/[^\\"\$]+/, "string"],
169
+ [/@escapes/, "string.escape"],
170
+ [/\\./, "string.escape.invalid"],
171
+ [/"/, "string", "@popall"]
172
+ ],
173
+ stringInsideExpression: [
174
+ [/[^\\"]+/, "string"],
175
+ [/@escapes/, "string.escape"],
176
+ [/\\./, "string.escape.invalid"],
177
+ [/"/, "string", "@pop"]
178
+ ],
179
+ stringExpression: [
180
+ [/\}/, { token: "delimiter", next: "@pop" }],
181
+ [/"/, "string", "@stringInsideExpression"],
182
+ { include: "@terraform" }
183
+ ]
184
+ }
185
+ };
186
+ export {
187
+ conf,
188
+ language
189
+ };
@@ -0,0 +1,316 @@
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 EMPTY_ELEMENTS = [
18
+ "area",
19
+ "base",
20
+ "br",
21
+ "col",
22
+ "embed",
23
+ "hr",
24
+ "img",
25
+ "input",
26
+ "keygen",
27
+ "link",
28
+ "menuitem",
29
+ "meta",
30
+ "param",
31
+ "source",
32
+ "track",
33
+ "wbr"
34
+ ], conf = {
35
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
36
+ comments: {
37
+ blockComment: ["<!--", "-->"]
38
+ },
39
+ brackets: [
40
+ ["<!--", "-->"],
41
+ ["<", ">"],
42
+ ["{", "}"],
43
+ ["(", ")"]
44
+ ],
45
+ autoClosingPairs: [
46
+ { open: "{", close: "}" },
47
+ { open: "[", close: "]" },
48
+ { open: "(", close: ")" },
49
+ { open: '"', close: '"' },
50
+ { open: "'", close: "'" }
51
+ ],
52
+ surroundingPairs: [
53
+ { open: '"', close: '"' },
54
+ { open: "'", close: "'" },
55
+ { open: "{", close: "}" },
56
+ { open: "[", close: "]" },
57
+ { open: "(", close: ")" },
58
+ { open: "<", close: ">" }
59
+ ],
60
+ onEnterRules: [
61
+ {
62
+ beforeText: new RegExp(
63
+ `<(?!(?:${EMPTY_ELEMENTS.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,
64
+ "i"
65
+ ),
66
+ afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
67
+ action: {
68
+ indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
69
+ }
70
+ },
71
+ {
72
+ beforeText: new RegExp(
73
+ `<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
74
+ "i"
75
+ ),
76
+ action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
77
+ }
78
+ ],
79
+ folding: {
80
+ markers: {
81
+ start: new RegExp("^\\s*<!--\\s*#region\\b.*-->"),
82
+ end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")
83
+ }
84
+ }
85
+ }, language = {
86
+ defaultToken: "",
87
+ tokenPostfix: ".html",
88
+ ignoreCase: !0,
89
+ // The main tokenizer for our languages
90
+ tokenizer: {
91
+ root: [
92
+ [/<!DOCTYPE/, "metatag", "@doctype"],
93
+ [/<!--/, "comment", "@comment"],
94
+ [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter", "tag", "", "delimiter"]],
95
+ [/(<)(script)/, ["delimiter", { token: "tag", next: "@script" }]],
96
+ [/(<)(style)/, ["delimiter", { token: "tag", next: "@style" }]],
97
+ [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
98
+ [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
99
+ [/</, "delimiter"],
100
+ [/[^<]+/]
101
+ // text
102
+ ],
103
+ doctype: [
104
+ [/[^>]+/, "metatag.content"],
105
+ [/>/, "metatag", "@pop"]
106
+ ],
107
+ comment: [
108
+ [/-->/, "comment", "@pop"],
109
+ [/[^-]+/, "comment.content"],
110
+ [/./, "comment.content"]
111
+ ],
112
+ otherTag: [
113
+ [/\/?>/, "delimiter", "@pop"],
114
+ [/"([^"]*)"/, "attribute.value"],
115
+ [/'([^']*)'/, "attribute.value"],
116
+ [/[\w\-]+/, "attribute.name"],
117
+ [/=/, "delimiter"],
118
+ [/[ \t\r\n]+/]
119
+ // whitespace
120
+ ],
121
+ // -- BEGIN <script> tags handling
122
+ // After <script
123
+ script: [
124
+ [/type/, "attribute.name", "@scriptAfterType"],
125
+ [/"([^"]*)"/, "attribute.value"],
126
+ [/'([^']*)'/, "attribute.value"],
127
+ [/[\w\-]+/, "attribute.name"],
128
+ [/=/, "delimiter"],
129
+ [
130
+ />/,
131
+ {
132
+ token: "delimiter",
133
+ next: "@scriptEmbedded",
134
+ nextEmbedded: "text/javascript"
135
+ }
136
+ ],
137
+ [/[ \t\r\n]+/],
138
+ // whitespace
139
+ [/(<\/)(script\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
140
+ ],
141
+ // After <script ... type
142
+ scriptAfterType: [
143
+ [/=/, "delimiter", "@scriptAfterTypeEquals"],
144
+ [
145
+ />/,
146
+ {
147
+ token: "delimiter",
148
+ next: "@scriptEmbedded",
149
+ nextEmbedded: "text/javascript"
150
+ }
151
+ ],
152
+ // cover invalid e.g. <script type>
153
+ [/[ \t\r\n]+/],
154
+ // whitespace
155
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
156
+ ],
157
+ // After <script ... type =
158
+ scriptAfterTypeEquals: [
159
+ [
160
+ /"module"/,
161
+ {
162
+ token: "attribute.value",
163
+ switchTo: "@scriptWithCustomType.text/javascript"
164
+ }
165
+ ],
166
+ [
167
+ /'module'/,
168
+ {
169
+ token: "attribute.value",
170
+ switchTo: "@scriptWithCustomType.text/javascript"
171
+ }
172
+ ],
173
+ [
174
+ /"([^"]*)"/,
175
+ {
176
+ token: "attribute.value",
177
+ switchTo: "@scriptWithCustomType.$1"
178
+ }
179
+ ],
180
+ [
181
+ /'([^']*)'/,
182
+ {
183
+ token: "attribute.value",
184
+ switchTo: "@scriptWithCustomType.$1"
185
+ }
186
+ ],
187
+ [
188
+ />/,
189
+ {
190
+ token: "delimiter",
191
+ next: "@scriptEmbedded",
192
+ nextEmbedded: "text/javascript"
193
+ }
194
+ ],
195
+ // cover invalid e.g. <script type=>
196
+ [/[ \t\r\n]+/],
197
+ // whitespace
198
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
199
+ ],
200
+ // After <script ... type = $S2
201
+ scriptWithCustomType: [
202
+ [
203
+ />/,
204
+ {
205
+ token: "delimiter",
206
+ next: "@scriptEmbedded.$S2",
207
+ nextEmbedded: "$S2"
208
+ }
209
+ ],
210
+ [/"([^"]*)"/, "attribute.value"],
211
+ [/'([^']*)'/, "attribute.value"],
212
+ [/[\w\-]+/, "attribute.name"],
213
+ [/=/, "delimiter"],
214
+ [/[ \t\r\n]+/],
215
+ // whitespace
216
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
217
+ ],
218
+ scriptEmbedded: [
219
+ [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
220
+ [/[^<]+/, ""]
221
+ ],
222
+ // -- END <script> tags handling
223
+ // -- BEGIN <style> tags handling
224
+ // After <style
225
+ style: [
226
+ [/type/, "attribute.name", "@styleAfterType"],
227
+ [/"([^"]*)"/, "attribute.value"],
228
+ [/'([^']*)'/, "attribute.value"],
229
+ [/[\w\-]+/, "attribute.name"],
230
+ [/=/, "delimiter"],
231
+ [
232
+ />/,
233
+ {
234
+ token: "delimiter",
235
+ next: "@styleEmbedded",
236
+ nextEmbedded: "text/css"
237
+ }
238
+ ],
239
+ [/[ \t\r\n]+/],
240
+ // whitespace
241
+ [/(<\/)(style\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
242
+ ],
243
+ // After <style ... type
244
+ styleAfterType: [
245
+ [/=/, "delimiter", "@styleAfterTypeEquals"],
246
+ [
247
+ />/,
248
+ {
249
+ token: "delimiter",
250
+ next: "@styleEmbedded",
251
+ nextEmbedded: "text/css"
252
+ }
253
+ ],
254
+ // cover invalid e.g. <style type>
255
+ [/[ \t\r\n]+/],
256
+ // whitespace
257
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
258
+ ],
259
+ // After <style ... type =
260
+ styleAfterTypeEquals: [
261
+ [
262
+ /"([^"]*)"/,
263
+ {
264
+ token: "attribute.value",
265
+ switchTo: "@styleWithCustomType.$1"
266
+ }
267
+ ],
268
+ [
269
+ /'([^']*)'/,
270
+ {
271
+ token: "attribute.value",
272
+ switchTo: "@styleWithCustomType.$1"
273
+ }
274
+ ],
275
+ [
276
+ />/,
277
+ {
278
+ token: "delimiter",
279
+ next: "@styleEmbedded",
280
+ nextEmbedded: "text/css"
281
+ }
282
+ ],
283
+ // cover invalid e.g. <style type=>
284
+ [/[ \t\r\n]+/],
285
+ // whitespace
286
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
287
+ ],
288
+ // After <style ... type = $S2
289
+ styleWithCustomType: [
290
+ [
291
+ />/,
292
+ {
293
+ token: "delimiter",
294
+ next: "@styleEmbedded.$S2",
295
+ nextEmbedded: "$S2"
296
+ }
297
+ ],
298
+ [/"([^"]*)"/, "attribute.value"],
299
+ [/'([^']*)'/, "attribute.value"],
300
+ [/[\w\-]+/, "attribute.name"],
301
+ [/=/, "delimiter"],
302
+ [/[ \t\r\n]+/],
303
+ // whitespace
304
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
305
+ ],
306
+ styleEmbedded: [
307
+ [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
308
+ [/[^<]+/, ""]
309
+ ]
310
+ // -- END <style> tags handling
311
+ }
312
+ };
313
+ export {
314
+ conf,
315
+ language
316
+ };
@@ -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 EMPTY_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],conf={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:monaco_editor_core_exports.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:monaco_editor_core_exports.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},language={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};exports.conf=conf;exports.language=language;