@threadlabs/looma 0.18.6 → 0.19.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 (215) hide show
  1. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +34 -3
  2. package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +55 -0
  3. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +7 -2
  4. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +29 -0
  5. package/dist/index.js +1 -1
  6. package/editor/chunks/extensions.js +24 -3
  7. package/editor/extensions/preset.d.ts +2 -0
  8. package/editor/extensions/table-commands.d.ts +1 -1
  9. package/editor/table-overlay.d.ts +8 -3
  10. package/package.json +2 -1
  11. package/styles/ui-editor-table-overlay.css +30 -0
  12. package/styles/ui-editor-table-toolbar.css +7 -2
  13. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  14. package/vanilla/UiEditorTableOverlay.js +9 -3
  15. package/vue/UiEditorTableOverlay.d.ts +8 -0
  16. package/vue/UiEditorTableOverlay.vue +45 -2
  17. package/vue/UiEditorTableToolbar.vue +7 -2
  18. package/vue/chunks/1c.js +106 -0
  19. package/vue/chunks/UiEditorTableOverlay.js +14 -4
  20. package/vue/chunks/UiEditorTableToolbar.js +1 -1
  21. package/vue/chunks/abnf.js +61 -0
  22. package/vue/chunks/accesslog.js +72 -0
  23. package/vue/chunks/actionscript.js +139 -0
  24. package/vue/chunks/ada.js +183 -0
  25. package/vue/chunks/angelscript.js +141 -0
  26. package/vue/chunks/apache.js +88 -0
  27. package/vue/chunks/applescript.js +99 -0
  28. package/vue/chunks/arcade.js +405 -0
  29. package/vue/chunks/arduino.js +871 -0
  30. package/vue/chunks/armasm.js +65 -0
  31. package/vue/chunks/asciidoc.js +181 -0
  32. package/vue/chunks/aspectj.js +202 -0
  33. package/vue/chunks/autohotkey.js +54 -0
  34. package/vue/chunks/autoit.js +132 -0
  35. package/vue/chunks/avrasm.js +46 -0
  36. package/vue/chunks/awk.js +58 -0
  37. package/vue/chunks/axapta.js +167 -0
  38. package/vue/chunks/bash.js +358 -0
  39. package/vue/chunks/basic.js +221 -0
  40. package/vue/chunks/bnf.js +27 -0
  41. package/vue/chunks/brainfuck.js +40 -0
  42. package/vue/chunks/c.js +265 -0
  43. package/vue/chunks/cal.js +136 -0
  44. package/vue/chunks/capnproto.js +86 -0
  45. package/vue/chunks/ceylon.js +125 -0
  46. package/vue/chunks/clean.js +54 -0
  47. package/vue/chunks/clojure-repl.js +17 -0
  48. package/vue/chunks/clojure.js +133 -0
  49. package/vue/chunks/cmake.js +23 -0
  50. package/vue/chunks/coffeescript.js +291 -0
  51. package/vue/chunks/coq.js +436 -0
  52. package/vue/chunks/cos.js +77 -0
  53. package/vue/chunks/cpp.js +492 -0
  54. package/vue/chunks/crmsh.js +80 -0
  55. package/vue/chunks/crystal.js +260 -0
  56. package/vue/chunks/csharp.js +376 -0
  57. package/vue/chunks/csp.js +52 -0
  58. package/vue/chunks/css.js +890 -0
  59. package/vue/chunks/d.js +184 -0
  60. package/vue/chunks/dart.js +226 -0
  61. package/vue/chunks/delphi.js +227 -0
  62. package/vue/chunks/diff.js +40 -0
  63. package/vue/chunks/django.js +43 -0
  64. package/vue/chunks/dns.js +66 -0
  65. package/vue/chunks/dockerfile.js +35 -0
  66. package/vue/chunks/dos.js +147 -0
  67. package/vue/chunks/dsconfig.js +55 -0
  68. package/vue/chunks/dts.js +119 -0
  69. package/vue/chunks/dust.js +33 -0
  70. package/vue/chunks/ebnf.js +40 -0
  71. package/vue/chunks/elixir.js +241 -0
  72. package/vue/chunks/elm.js +103 -0
  73. package/vue/chunks/erb.js +17 -0
  74. package/vue/chunks/erlang-repl.js +41 -0
  75. package/vue/chunks/erlang.js +236 -0
  76. package/vue/chunks/excel.js +562 -0
  77. package/vue/chunks/fix.js +30 -0
  78. package/vue/chunks/flix.js +60 -0
  79. package/vue/chunks/fortran.js +543 -0
  80. package/vue/chunks/fsharp.js +440 -0
  81. package/vue/chunks/gams.js +134 -0
  82. package/vue/chunks/gauss.js +167 -0
  83. package/vue/chunks/gcode.js +131 -0
  84. package/vue/chunks/gherkin.js +41 -0
  85. package/vue/chunks/glsl.js +25 -0
  86. package/vue/chunks/gml.js +3119 -0
  87. package/vue/chunks/go.js +140 -0
  88. package/vue/chunks/golo.js +72 -0
  89. package/vue/chunks/gradle.js +181 -0
  90. package/vue/chunks/graphql.js +68 -0
  91. package/vue/chunks/groovy.js +159 -0
  92. package/vue/chunks/haml.js +96 -0
  93. package/vue/chunks/handlebars.js +191 -0
  94. package/vue/chunks/haskell.js +149 -0
  95. package/vue/chunks/haxe.js +142 -0
  96. package/vue/chunks/hsp.js +45 -0
  97. package/vue/chunks/http.js +77 -0
  98. package/vue/chunks/hy.js +92 -0
  99. package/vue/chunks/inform7.js +45 -0
  100. package/vue/chunks/ini.js +94 -0
  101. package/vue/chunks/irpf90.js +52 -0
  102. package/vue/chunks/isbl.js +112 -0
  103. package/vue/chunks/java.js +237 -0
  104. package/vue/chunks/javascript.js +570 -0
  105. package/vue/chunks/jboss-cli.js +46 -0
  106. package/vue/chunks/json.js +45 -0
  107. package/vue/chunks/julia-repl.js +18 -0
  108. package/vue/chunks/julia.js +353 -0
  109. package/vue/chunks/kotlin.js +216 -0
  110. package/vue/chunks/lasso.js +127 -0
  111. package/vue/chunks/latex.js +206 -0
  112. package/vue/chunks/ldif.js +25 -0
  113. package/vue/chunks/leaf.js +72 -0
  114. package/vue/chunks/less.js +953 -0
  115. package/vue/chunks/lisp.js +119 -0
  116. package/vue/chunks/livecodeserver.js +86 -0
  117. package/vue/chunks/livescript.js +309 -0
  118. package/vue/chunks/llvm.js +77 -0
  119. package/vue/chunks/lsl.js +55 -0
  120. package/vue/chunks/lua.js +49 -0
  121. package/vue/chunks/makefile.js +62 -0
  122. package/vue/chunks/markdown.js +194 -0
  123. package/vue/chunks/mathematica.js +7317 -0
  124. package/vue/chunks/matlab.js +70 -0
  125. package/vue/chunks/maxima.js +38 -0
  126. package/vue/chunks/mel.js +24 -0
  127. package/vue/chunks/mercury.js +62 -0
  128. package/vue/chunks/mipsasm.js +53 -0
  129. package/vue/chunks/mizar.js +10 -0
  130. package/vue/chunks/mojolicious.js +27 -0
  131. package/vue/chunks/monkey.js +158 -0
  132. package/vue/chunks/moonscript.js +102 -0
  133. package/vue/chunks/n1ql.js +346 -0
  134. package/vue/chunks/nestedtext.js +66 -0
  135. package/vue/chunks/nginx.js +127 -0
  136. package/vue/chunks/nim.js +174 -0
  137. package/vue/chunks/nix.js +334 -0
  138. package/vue/chunks/node-repl.js +20 -0
  139. package/vue/chunks/nsis.js +515 -0
  140. package/vue/chunks/objectivec.js +235 -0
  141. package/vue/chunks/ocaml.js +52 -0
  142. package/vue/chunks/openscad.js +66 -0
  143. package/vue/chunks/oxygene.js +58 -0
  144. package/vue/chunks/parser3.js +40 -0
  145. package/vue/chunks/perl.js +454 -0
  146. package/vue/chunks/pf.js +30 -0
  147. package/vue/chunks/pgsql.js +196 -0
  148. package/vue/chunks/php-template.js +43 -0
  149. package/vue/chunks/php.js +527 -0
  150. package/vue/chunks/plaintext.js +10 -0
  151. package/vue/chunks/pony.js +60 -0
  152. package/vue/chunks/powershell.js +208 -0
  153. package/vue/chunks/processing.js +407 -0
  154. package/vue/chunks/profile.js +38 -0
  155. package/vue/chunks/prolog.js +62 -0
  156. package/vue/chunks/properties.js +45 -0
  157. package/vue/chunks/protobuf.js +63 -0
  158. package/vue/chunks/puppet.js +87 -0
  159. package/vue/chunks/purebasic.js +42 -0
  160. package/vue/chunks/python-repl.js +19 -0
  161. package/vue/chunks/python.js +357 -0
  162. package/vue/chunks/q.js +21 -0
  163. package/vue/chunks/qml.js +134 -0
  164. package/vue/chunks/r.js +145 -0
  165. package/vue/chunks/reasonml.js +134 -0
  166. package/vue/chunks/rib.js +16 -0
  167. package/vue/chunks/roboconf.js +54 -0
  168. package/vue/chunks/routeros.js +109 -0
  169. package/vue/chunks/rsl.js +138 -0
  170. package/vue/chunks/ruby.js +322 -0
  171. package/vue/chunks/ruleslanguage.js +26 -0
  172. package/vue/chunks/rust.js +296 -0
  173. package/vue/chunks/sas.js +533 -0
  174. package/vue/chunks/scala.js +173 -0
  175. package/vue/chunks/scheme.js +118 -0
  176. package/vue/chunks/scilab.js +45 -0
  177. package/vue/chunks/scss.js +900 -0
  178. package/vue/chunks/shell.js +18 -0
  179. package/vue/chunks/smali.js +113 -0
  180. package/vue/chunks/smalltalk.js +59 -0
  181. package/vue/chunks/sml.js +49 -0
  182. package/vue/chunks/sqf.js +2599 -0
  183. package/vue/chunks/sql.js +624 -0
  184. package/vue/chunks/stan.js +471 -0
  185. package/vue/chunks/stata.js +33 -0
  186. package/vue/chunks/step21.js +53 -0
  187. package/vue/chunks/stylus.js +925 -0
  188. package/vue/chunks/subunit.js +34 -0
  189. package/vue/chunks/swift.js +699 -0
  190. package/vue/chunks/taggerscript.js +37 -0
  191. package/vue/chunks/tap.js +30 -0
  192. package/vue/chunks/tcl.js +165 -0
  193. package/vue/chunks/thrift.js +65 -0
  194. package/vue/chunks/tp.js +155 -0
  195. package/vue/chunks/twig.js +232 -0
  196. package/vue/chunks/typescript.js +672 -0
  197. package/vue/chunks/vala.js +39 -0
  198. package/vue/chunks/vbnet.js +86 -0
  199. package/vue/chunks/vbscript-html.js +14 -0
  200. package/vue/chunks/vbscript.js +200 -0
  201. package/vue/chunks/verilog.js +534 -0
  202. package/vue/chunks/vhdl.js +190 -0
  203. package/vue/chunks/vim.js +54 -0
  204. package/vue/chunks/wasm.js +111 -0
  205. package/vue/chunks/wren.js +229 -0
  206. package/vue/chunks/x86asm.js +64 -0
  207. package/vue/chunks/xl.js +192 -0
  208. package/vue/chunks/xml.js +175 -0
  209. package/vue/chunks/xquery.js +303 -0
  210. package/vue/chunks/yaml.js +159 -0
  211. package/vue/chunks/zephir.js +74 -0
  212. package/vue/components.css +119 -85
  213. package/vue/editor/LoomaEditor.d.ts +7 -7
  214. package/vue/editor/code-language-catalog.d.ts +196 -0
  215. package/vue/editor/index.js +290 -20
@@ -0,0 +1,175 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/xml.js
2
+ /** @type LanguageFn */
3
+ function xml(hljs) {
4
+ const regex = hljs.regex;
5
+ const TAG_NAME_RE = regex.concat(/[\p{L}_]/u, regex.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u);
6
+ const XML_IDENT_RE = /[\p{L}0-9._:-]+/u;
7
+ const XML_ENTITIES = {
8
+ className: "symbol",
9
+ begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
10
+ };
11
+ const XML_META_KEYWORDS = {
12
+ begin: /\s/,
13
+ contains: [{
14
+ className: "keyword",
15
+ begin: /#?[a-z_][a-z1-9_-]+/,
16
+ illegal: /\n/
17
+ }]
18
+ };
19
+ const XML_META_PAR_KEYWORDS = hljs.inherit(XML_META_KEYWORDS, {
20
+ begin: /\(/,
21
+ end: /\)/
22
+ });
23
+ const APOS_META_STRING_MODE = hljs.inherit(hljs.APOS_STRING_MODE, { className: "string" });
24
+ const QUOTE_META_STRING_MODE = hljs.inherit(hljs.QUOTE_STRING_MODE, { className: "string" });
25
+ const TAG_INTERNALS = {
26
+ endsWithParent: true,
27
+ illegal: /</,
28
+ relevance: 0,
29
+ contains: [{
30
+ className: "attr",
31
+ begin: XML_IDENT_RE,
32
+ relevance: 0
33
+ }, {
34
+ begin: /=\s*/,
35
+ relevance: 0,
36
+ contains: [{
37
+ className: "string",
38
+ endsParent: true,
39
+ variants: [
40
+ {
41
+ begin: /"/,
42
+ end: /"/,
43
+ contains: [XML_ENTITIES]
44
+ },
45
+ {
46
+ begin: /'/,
47
+ end: /'/,
48
+ contains: [XML_ENTITIES]
49
+ },
50
+ { begin: /[^\s"'=<>`]+/ }
51
+ ]
52
+ }]
53
+ }]
54
+ };
55
+ return {
56
+ name: "HTML, XML",
57
+ aliases: [
58
+ "html",
59
+ "xhtml",
60
+ "rss",
61
+ "atom",
62
+ "xjb",
63
+ "xsd",
64
+ "xsl",
65
+ "plist",
66
+ "wsf",
67
+ "svg"
68
+ ],
69
+ case_insensitive: true,
70
+ unicodeRegex: true,
71
+ contains: [
72
+ {
73
+ className: "meta",
74
+ begin: /<![a-z]/,
75
+ end: />/,
76
+ relevance: 10,
77
+ contains: [
78
+ XML_META_KEYWORDS,
79
+ QUOTE_META_STRING_MODE,
80
+ APOS_META_STRING_MODE,
81
+ XML_META_PAR_KEYWORDS,
82
+ {
83
+ begin: /\[/,
84
+ end: /\]/,
85
+ contains: [{
86
+ className: "meta",
87
+ begin: /<![a-z]/,
88
+ end: />/,
89
+ contains: [
90
+ XML_META_KEYWORDS,
91
+ XML_META_PAR_KEYWORDS,
92
+ QUOTE_META_STRING_MODE,
93
+ APOS_META_STRING_MODE
94
+ ]
95
+ }]
96
+ }
97
+ ]
98
+ },
99
+ hljs.COMMENT(/<!--/, /-->/, { relevance: 10 }),
100
+ {
101
+ begin: /<!\[CDATA\[/,
102
+ end: /\]\]>/,
103
+ relevance: 10
104
+ },
105
+ XML_ENTITIES,
106
+ {
107
+ className: "meta",
108
+ end: /\?>/,
109
+ variants: [{
110
+ begin: /<\?xml/,
111
+ relevance: 10,
112
+ contains: [QUOTE_META_STRING_MODE]
113
+ }, { begin: /<\?[a-z][a-z0-9]+/ }]
114
+ },
115
+ {
116
+ className: "tag",
117
+ begin: /<style(?=\s|>)/,
118
+ end: />/,
119
+ keywords: { name: "style" },
120
+ contains: [TAG_INTERNALS],
121
+ starts: {
122
+ end: /<\/style>/,
123
+ returnEnd: true,
124
+ subLanguage: ["css", "xml"]
125
+ }
126
+ },
127
+ {
128
+ className: "tag",
129
+ begin: /<script(?=\s|>)/,
130
+ end: />/,
131
+ keywords: { name: "script" },
132
+ contains: [TAG_INTERNALS],
133
+ starts: {
134
+ end: /<\/script>/,
135
+ returnEnd: true,
136
+ subLanguage: [
137
+ "javascript",
138
+ "handlebars",
139
+ "xml"
140
+ ]
141
+ }
142
+ },
143
+ {
144
+ className: "tag",
145
+ begin: /<>|<\/>/
146
+ },
147
+ {
148
+ className: "tag",
149
+ begin: regex.concat(/</, regex.lookahead(regex.concat(TAG_NAME_RE, regex.either(/\/>/, />/, /\s/)))),
150
+ end: /\/?>/,
151
+ contains: [{
152
+ className: "name",
153
+ begin: TAG_NAME_RE,
154
+ relevance: 0,
155
+ starts: TAG_INTERNALS
156
+ }]
157
+ },
158
+ {
159
+ className: "tag",
160
+ begin: regex.concat(/<\//, regex.lookahead(regex.concat(TAG_NAME_RE, />/))),
161
+ contains: [{
162
+ className: "name",
163
+ begin: TAG_NAME_RE,
164
+ relevance: 0
165
+ }, {
166
+ begin: />/,
167
+ relevance: 0,
168
+ endsParent: true
169
+ }]
170
+ }
171
+ ]
172
+ };
173
+ }
174
+ //#endregion
175
+ export { xml as default };
@@ -0,0 +1,303 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/xquery.js
2
+ /** @type LanguageFn */
3
+ function xquery(_hljs) {
4
+ return {
5
+ name: "XQuery",
6
+ aliases: [
7
+ "xpath",
8
+ "xq",
9
+ "xqm"
10
+ ],
11
+ case_insensitive: false,
12
+ illegal: /(proc)|(abstract)|(extends)|(until)|(#)/,
13
+ keywords: {
14
+ $pattern: /[a-zA-Z$][a-zA-Z0-9_:-]*/,
15
+ keyword: [
16
+ "module",
17
+ "schema",
18
+ "namespace",
19
+ "boundary-space",
20
+ "preserve",
21
+ "no-preserve",
22
+ "strip",
23
+ "default",
24
+ "collation",
25
+ "base-uri",
26
+ "ordering",
27
+ "context",
28
+ "decimal-format",
29
+ "decimal-separator",
30
+ "copy-namespaces",
31
+ "empty-sequence",
32
+ "except",
33
+ "exponent-separator",
34
+ "external",
35
+ "grouping-separator",
36
+ "inherit",
37
+ "no-inherit",
38
+ "lax",
39
+ "minus-sign",
40
+ "per-mille",
41
+ "percent",
42
+ "schema-attribute",
43
+ "schema-element",
44
+ "strict",
45
+ "unordered",
46
+ "zero-digit",
47
+ "declare",
48
+ "import",
49
+ "option",
50
+ "function",
51
+ "validate",
52
+ "variable",
53
+ "for",
54
+ "at",
55
+ "in",
56
+ "let",
57
+ "where",
58
+ "order",
59
+ "group",
60
+ "by",
61
+ "return",
62
+ "if",
63
+ "then",
64
+ "else",
65
+ "tumbling",
66
+ "sliding",
67
+ "window",
68
+ "start",
69
+ "when",
70
+ "only",
71
+ "end",
72
+ "previous",
73
+ "next",
74
+ "stable",
75
+ "ascending",
76
+ "descending",
77
+ "allowing",
78
+ "empty",
79
+ "greatest",
80
+ "least",
81
+ "some",
82
+ "every",
83
+ "satisfies",
84
+ "switch",
85
+ "case",
86
+ "typeswitch",
87
+ "try",
88
+ "catch",
89
+ "and",
90
+ "or",
91
+ "to",
92
+ "union",
93
+ "intersect",
94
+ "instance",
95
+ "of",
96
+ "treat",
97
+ "as",
98
+ "castable",
99
+ "cast",
100
+ "map",
101
+ "array",
102
+ "delete",
103
+ "insert",
104
+ "into",
105
+ "replace",
106
+ "value",
107
+ "rename",
108
+ "copy",
109
+ "modify",
110
+ "update"
111
+ ],
112
+ type: [
113
+ "item",
114
+ "document-node",
115
+ "node",
116
+ "attribute",
117
+ "document",
118
+ "element",
119
+ "comment",
120
+ "namespace",
121
+ "namespace-node",
122
+ "processing-instruction",
123
+ "text",
124
+ "construction",
125
+ "xs:anyAtomicType",
126
+ "xs:untypedAtomic",
127
+ "xs:duration",
128
+ "xs:time",
129
+ "xs:decimal",
130
+ "xs:float",
131
+ "xs:double",
132
+ "xs:gYearMonth",
133
+ "xs:gYear",
134
+ "xs:gMonthDay",
135
+ "xs:gMonth",
136
+ "xs:gDay",
137
+ "xs:boolean",
138
+ "xs:base64Binary",
139
+ "xs:hexBinary",
140
+ "xs:anyURI",
141
+ "xs:QName",
142
+ "xs:NOTATION",
143
+ "xs:dateTime",
144
+ "xs:dateTimeStamp",
145
+ "xs:date",
146
+ "xs:string",
147
+ "xs:normalizedString",
148
+ "xs:token",
149
+ "xs:language",
150
+ "xs:NMTOKEN",
151
+ "xs:Name",
152
+ "xs:NCName",
153
+ "xs:ID",
154
+ "xs:IDREF",
155
+ "xs:ENTITY",
156
+ "xs:integer",
157
+ "xs:nonPositiveInteger",
158
+ "xs:negativeInteger",
159
+ "xs:long",
160
+ "xs:int",
161
+ "xs:short",
162
+ "xs:byte",
163
+ "xs:nonNegativeInteger",
164
+ "xs:unisignedLong",
165
+ "xs:unsignedInt",
166
+ "xs:unsignedShort",
167
+ "xs:unsignedByte",
168
+ "xs:positiveInteger",
169
+ "xs:yearMonthDuration",
170
+ "xs:dayTimeDuration"
171
+ ],
172
+ literal: [
173
+ "eq",
174
+ "ne",
175
+ "lt",
176
+ "le",
177
+ "gt",
178
+ "ge",
179
+ "is",
180
+ "self::",
181
+ "child::",
182
+ "descendant::",
183
+ "descendant-or-self::",
184
+ "attribute::",
185
+ "following::",
186
+ "following-sibling::",
187
+ "parent::",
188
+ "ancestor::",
189
+ "ancestor-or-self::",
190
+ "preceding::",
191
+ "preceding-sibling::",
192
+ "NaN"
193
+ ]
194
+ },
195
+ contains: [
196
+ {
197
+ className: "variable",
198
+ begin: /[$][\w\-:]+/
199
+ },
200
+ {
201
+ className: "built_in",
202
+ variants: [
203
+ {
204
+ begin: /\barray:/,
205
+ end: /(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/
206
+ },
207
+ {
208
+ begin: /\bmap:/,
209
+ end: /(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/
210
+ },
211
+ {
212
+ begin: /\bmath:/,
213
+ end: /(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/
214
+ },
215
+ {
216
+ begin: /\bop:/,
217
+ end: /\(/,
218
+ excludeEnd: true
219
+ },
220
+ {
221
+ begin: /\bfn:/,
222
+ end: /\(/,
223
+ excludeEnd: true
224
+ },
225
+ { begin: /[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/ },
226
+ {
227
+ begin: /\blocal:/,
228
+ end: /\(/,
229
+ excludeEnd: true
230
+ },
231
+ {
232
+ begin: /\bzip:/,
233
+ end: /(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/
234
+ },
235
+ {
236
+ begin: /\b(?:util|db|functx|app|xdmp|xmldb):/,
237
+ end: /\(/,
238
+ excludeEnd: true
239
+ }
240
+ ]
241
+ },
242
+ {
243
+ className: "string",
244
+ variants: [{
245
+ begin: /"/,
246
+ end: /"/,
247
+ contains: [{
248
+ begin: /""/,
249
+ relevance: 0
250
+ }]
251
+ }, {
252
+ begin: /'/,
253
+ end: /'/,
254
+ contains: [{
255
+ begin: /''/,
256
+ relevance: 0
257
+ }]
258
+ }]
259
+ },
260
+ {
261
+ className: "number",
262
+ begin: /(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,
263
+ relevance: 0
264
+ },
265
+ {
266
+ className: "comment",
267
+ begin: /\(:/,
268
+ end: /:\)/,
269
+ relevance: 10,
270
+ contains: [{
271
+ className: "doctag",
272
+ begin: /@\w+/
273
+ }]
274
+ },
275
+ {
276
+ className: "meta",
277
+ begin: /%[\w\-:]+/
278
+ },
279
+ {
280
+ className: "title",
281
+ begin: /\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,
282
+ end: /;/
283
+ },
284
+ {
285
+ beginKeywords: "element attribute comment document processing-instruction",
286
+ end: /\{/,
287
+ excludeEnd: true
288
+ },
289
+ {
290
+ begin: /<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,
291
+ end: /(\/[\w._:-]+>)/,
292
+ subLanguage: "xml",
293
+ contains: [{
294
+ begin: /\{/,
295
+ end: /\}/,
296
+ subLanguage: "xquery"
297
+ }, "self"]
298
+ }
299
+ ]
300
+ };
301
+ }
302
+ //#endregion
303
+ export { xquery as default };
@@ -0,0 +1,159 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/yaml.js
2
+ function yaml(hljs) {
3
+ const LITERALS = "true false yes no null";
4
+ const URI_CHARACTERS = "[\\w#;/?:@&=+$,.~*'()[\\]]+";
5
+ const KEY = {
6
+ className: "attr",
7
+ variants: [
8
+ { begin: /[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/ },
9
+ { begin: /"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/ },
10
+ { begin: /'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/ }
11
+ ]
12
+ };
13
+ const TEMPLATE_VARIABLES = {
14
+ className: "template-variable",
15
+ variants: [{
16
+ begin: /\{\{/,
17
+ end: /\}\}/
18
+ }, {
19
+ begin: /%\{/,
20
+ end: /\}/
21
+ }]
22
+ };
23
+ const SINGLE_QUOTE_STRING = {
24
+ className: "string",
25
+ relevance: 0,
26
+ begin: /'/,
27
+ end: /'/,
28
+ contains: [{
29
+ match: /''/,
30
+ scope: "char.escape",
31
+ relevance: 0
32
+ }]
33
+ };
34
+ const STRING = {
35
+ className: "string",
36
+ relevance: 0,
37
+ variants: [{
38
+ begin: /"/,
39
+ end: /"/
40
+ }, { begin: /\S+/ }],
41
+ contains: [hljs.BACKSLASH_ESCAPE, TEMPLATE_VARIABLES]
42
+ };
43
+ const CONTAINER_STRING = hljs.inherit(STRING, { variants: [
44
+ {
45
+ begin: /'/,
46
+ end: /'/,
47
+ contains: [{
48
+ begin: /''/,
49
+ relevance: 0
50
+ }]
51
+ },
52
+ {
53
+ begin: /"/,
54
+ end: /"/
55
+ },
56
+ { begin: /[^\s,{}[\]]+/ }
57
+ ] });
58
+ const TIMESTAMP = {
59
+ className: "number",
60
+ begin: "\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"
61
+ };
62
+ const VALUE_CONTAINER = {
63
+ end: ",",
64
+ endsWithParent: true,
65
+ excludeEnd: true,
66
+ keywords: LITERALS,
67
+ relevance: 0
68
+ };
69
+ const OBJECT = {
70
+ begin: /\{/,
71
+ end: /\}/,
72
+ contains: [VALUE_CONTAINER],
73
+ illegal: "\\n",
74
+ relevance: 0
75
+ };
76
+ const ARRAY = {
77
+ begin: "\\[",
78
+ end: "\\]",
79
+ contains: [VALUE_CONTAINER],
80
+ illegal: "\\n",
81
+ relevance: 0
82
+ };
83
+ const MODES = [
84
+ KEY,
85
+ {
86
+ className: "meta",
87
+ begin: "^---\\s*$",
88
+ relevance: 10
89
+ },
90
+ {
91
+ className: "string",
92
+ begin: "[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"
93
+ },
94
+ {
95
+ begin: "<%[%=-]?",
96
+ end: "[%-]?%>",
97
+ subLanguage: "ruby",
98
+ excludeBegin: true,
99
+ excludeEnd: true,
100
+ relevance: 0
101
+ },
102
+ {
103
+ className: "type",
104
+ begin: "!\\w+!" + URI_CHARACTERS
105
+ },
106
+ {
107
+ className: "type",
108
+ begin: "!<" + URI_CHARACTERS + ">"
109
+ },
110
+ {
111
+ className: "type",
112
+ begin: "!" + URI_CHARACTERS
113
+ },
114
+ {
115
+ className: "type",
116
+ begin: "!!" + URI_CHARACTERS
117
+ },
118
+ {
119
+ className: "meta",
120
+ begin: "&" + hljs.UNDERSCORE_IDENT_RE + "$"
121
+ },
122
+ {
123
+ className: "meta",
124
+ begin: "\\*" + hljs.UNDERSCORE_IDENT_RE + "$"
125
+ },
126
+ {
127
+ className: "bullet",
128
+ begin: "-(?=[ ]|$)",
129
+ relevance: 0
130
+ },
131
+ hljs.HASH_COMMENT_MODE,
132
+ {
133
+ beginKeywords: LITERALS,
134
+ keywords: { literal: LITERALS }
135
+ },
136
+ TIMESTAMP,
137
+ {
138
+ className: "number",
139
+ begin: hljs.C_NUMBER_RE + "\\b",
140
+ relevance: 0
141
+ },
142
+ OBJECT,
143
+ ARRAY,
144
+ SINGLE_QUOTE_STRING,
145
+ STRING
146
+ ];
147
+ const VALUE_MODES = [...MODES];
148
+ VALUE_MODES.pop();
149
+ VALUE_MODES.push(CONTAINER_STRING);
150
+ VALUE_CONTAINER.contains = VALUE_MODES;
151
+ return {
152
+ name: "YAML",
153
+ case_insensitive: true,
154
+ aliases: ["yml"],
155
+ contains: MODES
156
+ };
157
+ }
158
+ //#endregion
159
+ export { yaml as default };
@@ -0,0 +1,74 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/zephir.js
2
+ /** @type LanguageFn */
3
+ function zephir(hljs) {
4
+ const STRING = {
5
+ className: "string",
6
+ contains: [hljs.BACKSLASH_ESCAPE],
7
+ variants: [hljs.inherit(hljs.APOS_STRING_MODE, { illegal: null }), hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null })]
8
+ };
9
+ const TITLE_MODE = hljs.UNDERSCORE_TITLE_MODE;
10
+ const NUMBER = { variants: [hljs.BINARY_NUMBER_MODE, hljs.C_NUMBER_MODE] };
11
+ const KEYWORDS = "namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";
12
+ return {
13
+ name: "Zephir",
14
+ aliases: ["zep"],
15
+ keywords: KEYWORDS,
16
+ contains: [
17
+ hljs.C_LINE_COMMENT_MODE,
18
+ hljs.COMMENT(/\/\*/, /\*\//, { contains: [{
19
+ className: "doctag",
20
+ begin: /@[A-Za-z]+/
21
+ }] }),
22
+ {
23
+ className: "string",
24
+ begin: /<<<['"]?\w+['"]?$/,
25
+ end: /^\w+;/,
26
+ contains: [hljs.BACKSLASH_ESCAPE]
27
+ },
28
+ { begin: /(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/ },
29
+ {
30
+ className: "function",
31
+ beginKeywords: "function fn",
32
+ end: /[;{]/,
33
+ excludeEnd: true,
34
+ illegal: /\$|\[|%/,
35
+ contains: [TITLE_MODE, {
36
+ className: "params",
37
+ begin: /\(/,
38
+ end: /\)/,
39
+ keywords: KEYWORDS,
40
+ contains: [
41
+ "self",
42
+ hljs.C_BLOCK_COMMENT_MODE,
43
+ STRING,
44
+ NUMBER
45
+ ]
46
+ }]
47
+ },
48
+ {
49
+ className: "class",
50
+ beginKeywords: "class interface",
51
+ end: /\{/,
52
+ excludeEnd: true,
53
+ illegal: /[:($"]/,
54
+ contains: [{ beginKeywords: "extends implements" }, TITLE_MODE]
55
+ },
56
+ {
57
+ beginKeywords: "namespace",
58
+ end: /;/,
59
+ illegal: /[.']/,
60
+ contains: [TITLE_MODE]
61
+ },
62
+ {
63
+ beginKeywords: "use",
64
+ end: /;/,
65
+ contains: [TITLE_MODE]
66
+ },
67
+ { begin: /=>/ },
68
+ STRING,
69
+ NUMBER
70
+ ]
71
+ };
72
+ }
73
+ //#endregion
74
+ export { zephir as default };