@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,353 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/julia.js
2
+ function julia(hljs) {
3
+ const VARIABLE_NAME_RE = "[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*";
4
+ const KEYWORDS = {
5
+ $pattern: VARIABLE_NAME_RE,
6
+ keyword: [
7
+ "baremodule",
8
+ "begin",
9
+ "break",
10
+ "catch",
11
+ "ccall",
12
+ "const",
13
+ "continue",
14
+ "do",
15
+ "else",
16
+ "elseif",
17
+ "end",
18
+ "export",
19
+ "false",
20
+ "finally",
21
+ "for",
22
+ "function",
23
+ "global",
24
+ "if",
25
+ "import",
26
+ "in",
27
+ "isa",
28
+ "let",
29
+ "local",
30
+ "macro",
31
+ "module",
32
+ "quote",
33
+ "return",
34
+ "true",
35
+ "try",
36
+ "using",
37
+ "where",
38
+ "while"
39
+ ],
40
+ literal: [
41
+ "ARGS",
42
+ "C_NULL",
43
+ "DEPOT_PATH",
44
+ "ENDIAN_BOM",
45
+ "ENV",
46
+ "Inf",
47
+ "Inf16",
48
+ "Inf32",
49
+ "Inf64",
50
+ "InsertionSort",
51
+ "LOAD_PATH",
52
+ "MergeSort",
53
+ "NaN",
54
+ "NaN16",
55
+ "NaN32",
56
+ "NaN64",
57
+ "PROGRAM_FILE",
58
+ "QuickSort",
59
+ "RoundDown",
60
+ "RoundFromZero",
61
+ "RoundNearest",
62
+ "RoundNearestTiesAway",
63
+ "RoundNearestTiesUp",
64
+ "RoundToZero",
65
+ "RoundUp",
66
+ "VERSION|0",
67
+ "devnull",
68
+ "false",
69
+ "im",
70
+ "missing",
71
+ "nothing",
72
+ "pi",
73
+ "stderr",
74
+ "stdin",
75
+ "stdout",
76
+ "true",
77
+ "undef",
78
+ "π",
79
+ "ℯ"
80
+ ],
81
+ built_in: [
82
+ "AbstractArray",
83
+ "AbstractChannel",
84
+ "AbstractChar",
85
+ "AbstractDict",
86
+ "AbstractDisplay",
87
+ "AbstractFloat",
88
+ "AbstractIrrational",
89
+ "AbstractMatrix",
90
+ "AbstractRange",
91
+ "AbstractSet",
92
+ "AbstractString",
93
+ "AbstractUnitRange",
94
+ "AbstractVecOrMat",
95
+ "AbstractVector",
96
+ "Any",
97
+ "ArgumentError",
98
+ "Array",
99
+ "AssertionError",
100
+ "BigFloat",
101
+ "BigInt",
102
+ "BitArray",
103
+ "BitMatrix",
104
+ "BitSet",
105
+ "BitVector",
106
+ "Bool",
107
+ "BoundsError",
108
+ "CapturedException",
109
+ "CartesianIndex",
110
+ "CartesianIndices",
111
+ "Cchar",
112
+ "Cdouble",
113
+ "Cfloat",
114
+ "Channel",
115
+ "Char",
116
+ "Cint",
117
+ "Cintmax_t",
118
+ "Clong",
119
+ "Clonglong",
120
+ "Cmd",
121
+ "Colon",
122
+ "Complex",
123
+ "ComplexF16",
124
+ "ComplexF32",
125
+ "ComplexF64",
126
+ "CompositeException",
127
+ "Condition",
128
+ "Cptrdiff_t",
129
+ "Cshort",
130
+ "Csize_t",
131
+ "Cssize_t",
132
+ "Cstring",
133
+ "Cuchar",
134
+ "Cuint",
135
+ "Cuintmax_t",
136
+ "Culong",
137
+ "Culonglong",
138
+ "Cushort",
139
+ "Cvoid",
140
+ "Cwchar_t",
141
+ "Cwstring",
142
+ "DataType",
143
+ "DenseArray",
144
+ "DenseMatrix",
145
+ "DenseVecOrMat",
146
+ "DenseVector",
147
+ "Dict",
148
+ "DimensionMismatch",
149
+ "Dims",
150
+ "DivideError",
151
+ "DomainError",
152
+ "EOFError",
153
+ "Enum",
154
+ "ErrorException",
155
+ "Exception",
156
+ "ExponentialBackOff",
157
+ "Expr",
158
+ "Float16",
159
+ "Float32",
160
+ "Float64",
161
+ "Function",
162
+ "GlobalRef",
163
+ "HTML",
164
+ "IO",
165
+ "IOBuffer",
166
+ "IOContext",
167
+ "IOStream",
168
+ "IdDict",
169
+ "IndexCartesian",
170
+ "IndexLinear",
171
+ "IndexStyle",
172
+ "InexactError",
173
+ "InitError",
174
+ "Int",
175
+ "Int128",
176
+ "Int16",
177
+ "Int32",
178
+ "Int64",
179
+ "Int8",
180
+ "Integer",
181
+ "InterruptException",
182
+ "InvalidStateException",
183
+ "Irrational",
184
+ "KeyError",
185
+ "LinRange",
186
+ "LineNumberNode",
187
+ "LinearIndices",
188
+ "LoadError",
189
+ "MIME",
190
+ "Matrix",
191
+ "Method",
192
+ "MethodError",
193
+ "Missing",
194
+ "MissingException",
195
+ "Module",
196
+ "NTuple",
197
+ "NamedTuple",
198
+ "Nothing",
199
+ "Number",
200
+ "OrdinalRange",
201
+ "OutOfMemoryError",
202
+ "OverflowError",
203
+ "Pair",
204
+ "PartialQuickSort",
205
+ "PermutedDimsArray",
206
+ "Pipe",
207
+ "ProcessFailedException",
208
+ "Ptr",
209
+ "QuoteNode",
210
+ "Rational",
211
+ "RawFD",
212
+ "ReadOnlyMemoryError",
213
+ "Real",
214
+ "ReentrantLock",
215
+ "Ref",
216
+ "Regex",
217
+ "RegexMatch",
218
+ "RoundingMode",
219
+ "SegmentationFault",
220
+ "Set",
221
+ "Signed",
222
+ "Some",
223
+ "StackOverflowError",
224
+ "StepRange",
225
+ "StepRangeLen",
226
+ "StridedArray",
227
+ "StridedMatrix",
228
+ "StridedVecOrMat",
229
+ "StridedVector",
230
+ "String",
231
+ "StringIndexError",
232
+ "SubArray",
233
+ "SubString",
234
+ "SubstitutionString",
235
+ "Symbol",
236
+ "SystemError",
237
+ "Task",
238
+ "TaskFailedException",
239
+ "Text",
240
+ "TextDisplay",
241
+ "Timer",
242
+ "Tuple",
243
+ "Type",
244
+ "TypeError",
245
+ "TypeVar",
246
+ "UInt",
247
+ "UInt128",
248
+ "UInt16",
249
+ "UInt32",
250
+ "UInt64",
251
+ "UInt8",
252
+ "UndefInitializer",
253
+ "UndefKeywordError",
254
+ "UndefRefError",
255
+ "UndefVarError",
256
+ "Union",
257
+ "UnionAll",
258
+ "UnitRange",
259
+ "Unsigned",
260
+ "Val",
261
+ "Vararg",
262
+ "VecElement",
263
+ "VecOrMat",
264
+ "Vector",
265
+ "VersionNumber",
266
+ "WeakKeyDict",
267
+ "WeakRef"
268
+ ]
269
+ };
270
+ const DEFAULT = {
271
+ keywords: KEYWORDS,
272
+ illegal: /<\//
273
+ };
274
+ const NUMBER = {
275
+ className: "number",
276
+ begin: /(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,
277
+ relevance: 0
278
+ };
279
+ const CHAR = {
280
+ className: "string",
281
+ begin: /'(.|\\[xXuU][a-zA-Z0-9]+)'/
282
+ };
283
+ const INTERPOLATION = {
284
+ className: "subst",
285
+ begin: /\$\(/,
286
+ end: /\)/,
287
+ keywords: KEYWORDS
288
+ };
289
+ const INTERPOLATED_VARIABLE = {
290
+ className: "variable",
291
+ begin: "\\$" + VARIABLE_NAME_RE
292
+ };
293
+ const STRING = {
294
+ className: "string",
295
+ contains: [
296
+ hljs.BACKSLASH_ESCAPE,
297
+ INTERPOLATION,
298
+ INTERPOLATED_VARIABLE
299
+ ],
300
+ variants: [{
301
+ begin: /\w*"""/,
302
+ end: /"""\w*/,
303
+ relevance: 10
304
+ }, {
305
+ begin: /\w*"/,
306
+ end: /"\w*/
307
+ }]
308
+ };
309
+ const COMMAND = {
310
+ className: "string",
311
+ contains: [
312
+ hljs.BACKSLASH_ESCAPE,
313
+ INTERPOLATION,
314
+ INTERPOLATED_VARIABLE
315
+ ],
316
+ begin: "`",
317
+ end: "`"
318
+ };
319
+ const MACROCALL = {
320
+ className: "meta",
321
+ begin: "@" + VARIABLE_NAME_RE
322
+ };
323
+ const COMMENT = {
324
+ className: "comment",
325
+ variants: [{
326
+ begin: "#=",
327
+ end: "=#",
328
+ relevance: 10
329
+ }, {
330
+ begin: "#",
331
+ end: "$"
332
+ }]
333
+ };
334
+ DEFAULT.name = "Julia";
335
+ DEFAULT.contains = [
336
+ NUMBER,
337
+ CHAR,
338
+ STRING,
339
+ COMMAND,
340
+ MACROCALL,
341
+ COMMENT,
342
+ hljs.HASH_COMMENT_MODE,
343
+ {
344
+ className: "keyword",
345
+ begin: "\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"
346
+ },
347
+ { begin: /<:/ }
348
+ ];
349
+ INTERPOLATION.contains = DEFAULT.contains;
350
+ return DEFAULT;
351
+ }
352
+ //#endregion
353
+ export { julia as default };
@@ -0,0 +1,216 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/kotlin.js
2
+ var decimalDigits = "[0-9](_*[0-9])*";
3
+ var frac = `\\.(${decimalDigits})`;
4
+ var hexDigits = "[0-9a-fA-F](_*[0-9a-fA-F])*";
5
+ var NUMERIC = {
6
+ className: "number",
7
+ variants: [
8
+ { begin: `(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})[fFdD]?\\b` },
9
+ { begin: `\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
10
+ { begin: `(${frac})[fFdD]?\\b` },
11
+ { begin: `\\b(${decimalDigits})[fFdD]\\b` },
12
+ { begin: `\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))[pP][+-]?(${decimalDigits})[fFdD]?\\b` },
13
+ { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
14
+ { begin: `\\b0[xX](${hexDigits})[lL]?\\b` },
15
+ { begin: "\\b0(_*[0-7])*[lL]?\\b" },
16
+ { begin: "\\b0[bB][01](_*[01])*[lL]?\\b" }
17
+ ],
18
+ relevance: 0
19
+ };
20
+ function kotlin(hljs) {
21
+ const KEYWORDS = {
22
+ keyword: "abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",
23
+ built_in: "Byte Short Char Int Long Boolean Float Double Void Unit Nothing",
24
+ literal: "true false null"
25
+ };
26
+ const KEYWORDS_WITH_LABEL = {
27
+ className: "keyword",
28
+ begin: /\b(break|continue|return|this)\b/,
29
+ starts: { contains: [{
30
+ className: "symbol",
31
+ begin: /@\w+/
32
+ }] }
33
+ };
34
+ const LABEL = {
35
+ className: "symbol",
36
+ begin: hljs.UNDERSCORE_IDENT_RE + "@"
37
+ };
38
+ const SUBST = {
39
+ className: "subst",
40
+ begin: /\$\{/,
41
+ end: /\}/,
42
+ contains: [hljs.C_NUMBER_MODE]
43
+ };
44
+ const VARIABLE = {
45
+ className: "variable",
46
+ begin: "\\$" + hljs.UNDERSCORE_IDENT_RE
47
+ };
48
+ const STRING = {
49
+ className: "string",
50
+ variants: [
51
+ {
52
+ begin: "\"\"\"",
53
+ end: "\"\"\"(?=[^\"])",
54
+ contains: [VARIABLE, SUBST]
55
+ },
56
+ {
57
+ begin: "'",
58
+ end: "'",
59
+ illegal: /\n/,
60
+ contains: [hljs.BACKSLASH_ESCAPE]
61
+ },
62
+ {
63
+ begin: "\"",
64
+ end: "\"",
65
+ illegal: /\n/,
66
+ contains: [
67
+ hljs.BACKSLASH_ESCAPE,
68
+ VARIABLE,
69
+ SUBST
70
+ ]
71
+ }
72
+ ]
73
+ };
74
+ SUBST.contains.push(STRING);
75
+ const ANNOTATION_USE_SITE = {
76
+ className: "meta",
77
+ begin: "@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*" + hljs.UNDERSCORE_IDENT_RE + ")?"
78
+ };
79
+ const ANNOTATION = {
80
+ className: "meta",
81
+ begin: "@" + hljs.UNDERSCORE_IDENT_RE,
82
+ contains: [{
83
+ begin: /\(/,
84
+ end: /\)/,
85
+ contains: [hljs.inherit(STRING, { className: "string" }), "self"]
86
+ }]
87
+ };
88
+ const KOTLIN_NUMBER_MODE = NUMERIC;
89
+ const KOTLIN_NESTED_COMMENT = hljs.COMMENT("/\\*", "\\*/", { contains: [hljs.C_BLOCK_COMMENT_MODE] });
90
+ const KOTLIN_PAREN_TYPE = { variants: [{
91
+ className: "type",
92
+ begin: hljs.UNDERSCORE_IDENT_RE
93
+ }, {
94
+ begin: /\(/,
95
+ end: /\)/,
96
+ contains: []
97
+ }] };
98
+ const KOTLIN_PAREN_TYPE2 = KOTLIN_PAREN_TYPE;
99
+ KOTLIN_PAREN_TYPE2.variants[1].contains = [KOTLIN_PAREN_TYPE];
100
+ KOTLIN_PAREN_TYPE.variants[1].contains = [KOTLIN_PAREN_TYPE2];
101
+ return {
102
+ name: "Kotlin",
103
+ aliases: ["kt", "kts"],
104
+ keywords: KEYWORDS,
105
+ contains: [
106
+ hljs.COMMENT("/\\*\\*", "\\*/", {
107
+ relevance: 0,
108
+ contains: [{
109
+ className: "doctag",
110
+ begin: "@[A-Za-z]+"
111
+ }]
112
+ }),
113
+ hljs.C_LINE_COMMENT_MODE,
114
+ KOTLIN_NESTED_COMMENT,
115
+ KEYWORDS_WITH_LABEL,
116
+ LABEL,
117
+ ANNOTATION_USE_SITE,
118
+ ANNOTATION,
119
+ {
120
+ className: "function",
121
+ beginKeywords: "fun",
122
+ end: "[(]|$",
123
+ returnBegin: true,
124
+ excludeEnd: true,
125
+ keywords: KEYWORDS,
126
+ relevance: 5,
127
+ contains: [
128
+ {
129
+ begin: hljs.UNDERSCORE_IDENT_RE + "\\s*\\(",
130
+ returnBegin: true,
131
+ relevance: 0,
132
+ contains: [hljs.UNDERSCORE_TITLE_MODE]
133
+ },
134
+ {
135
+ className: "type",
136
+ begin: /</,
137
+ end: />/,
138
+ keywords: "reified",
139
+ relevance: 0
140
+ },
141
+ {
142
+ className: "params",
143
+ begin: /\(/,
144
+ end: /\)/,
145
+ endsParent: true,
146
+ keywords: KEYWORDS,
147
+ relevance: 0,
148
+ contains: [
149
+ {
150
+ begin: /:/,
151
+ end: /[=,\/]/,
152
+ endsWithParent: true,
153
+ contains: [
154
+ KOTLIN_PAREN_TYPE,
155
+ hljs.C_LINE_COMMENT_MODE,
156
+ KOTLIN_NESTED_COMMENT
157
+ ],
158
+ relevance: 0
159
+ },
160
+ hljs.C_LINE_COMMENT_MODE,
161
+ KOTLIN_NESTED_COMMENT,
162
+ ANNOTATION_USE_SITE,
163
+ ANNOTATION,
164
+ STRING,
165
+ hljs.C_NUMBER_MODE
166
+ ]
167
+ },
168
+ KOTLIN_NESTED_COMMENT
169
+ ]
170
+ },
171
+ {
172
+ begin: [
173
+ /class|interface|trait/,
174
+ /\s+/,
175
+ hljs.UNDERSCORE_IDENT_RE
176
+ ],
177
+ beginScope: { 3: "title.class" },
178
+ keywords: "class interface trait",
179
+ end: /[:\{(]|$/,
180
+ excludeEnd: true,
181
+ illegal: "extends implements",
182
+ contains: [
183
+ { beginKeywords: "public protected internal private constructor" },
184
+ hljs.UNDERSCORE_TITLE_MODE,
185
+ {
186
+ className: "type",
187
+ begin: /</,
188
+ end: />/,
189
+ excludeBegin: true,
190
+ excludeEnd: true,
191
+ relevance: 0
192
+ },
193
+ {
194
+ className: "type",
195
+ begin: /[,:]\s*/,
196
+ end: /[<\(,){\s]|$/,
197
+ excludeBegin: true,
198
+ returnEnd: true
199
+ },
200
+ ANNOTATION_USE_SITE,
201
+ ANNOTATION
202
+ ]
203
+ },
204
+ STRING,
205
+ {
206
+ className: "meta",
207
+ begin: "^#!/usr/bin/env",
208
+ end: "$",
209
+ illegal: "\n"
210
+ },
211
+ KOTLIN_NUMBER_MODE
212
+ ]
213
+ };
214
+ }
215
+ //#endregion
216
+ export { kotlin as default };
@@ -0,0 +1,127 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/lasso.js
2
+ function lasso(hljs) {
3
+ const LASSO_IDENT_RE = "[a-zA-Z_][\\w.]*";
4
+ const LASSO_ANGLE_RE = "<\\?(lasso(script)?|=)";
5
+ const LASSO_CLOSE_RE = "\\]|\\?>";
6
+ const LASSO_KEYWORDS = {
7
+ $pattern: "[a-zA-Z_][\\w.]*|&[lg]t;",
8
+ literal: "true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",
9
+ built_in: "array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",
10
+ keyword: "cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"
11
+ };
12
+ const HTML_COMMENT = hljs.COMMENT("<!--", "-->", { relevance: 0 });
13
+ const LASSO_NOPROCESS = {
14
+ className: "meta",
15
+ begin: "\\[noprocess\\]",
16
+ starts: {
17
+ end: "\\[/noprocess\\]",
18
+ returnEnd: true,
19
+ contains: [HTML_COMMENT]
20
+ }
21
+ };
22
+ const LASSO_START = {
23
+ className: "meta",
24
+ begin: "\\[/noprocess|" + LASSO_ANGLE_RE
25
+ };
26
+ const LASSO_CODE = [
27
+ hljs.C_LINE_COMMENT_MODE,
28
+ hljs.C_BLOCK_COMMENT_MODE,
29
+ hljs.inherit(hljs.C_NUMBER_MODE, { begin: hljs.C_NUMBER_RE + "|(-?infinity|NaN)\\b" }),
30
+ hljs.inherit(hljs.APOS_STRING_MODE, { illegal: null }),
31
+ hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }),
32
+ {
33
+ className: "string",
34
+ begin: "`",
35
+ end: "`"
36
+ },
37
+ { variants: [{ begin: "[#$][a-zA-Z_][\\w.]*" }, {
38
+ begin: "#",
39
+ end: "\\d+",
40
+ illegal: "\\W"
41
+ }] },
42
+ {
43
+ className: "type",
44
+ begin: "::\\s*",
45
+ end: LASSO_IDENT_RE,
46
+ illegal: "\\W"
47
+ },
48
+ {
49
+ className: "params",
50
+ variants: [{
51
+ begin: "-(?!infinity)[a-zA-Z_][\\w.]*",
52
+ relevance: 0
53
+ }, { begin: "(\\.\\.\\.)" }]
54
+ },
55
+ {
56
+ begin: /(->|\.)\s*/,
57
+ relevance: 0,
58
+ contains: [{
59
+ className: "symbol",
60
+ begin: "'[a-zA-Z_][\\w.]*'"
61
+ }]
62
+ },
63
+ {
64
+ className: "class",
65
+ beginKeywords: "define",
66
+ returnEnd: true,
67
+ end: "\\(|=>",
68
+ contains: [hljs.inherit(hljs.TITLE_MODE, { begin: "[a-zA-Z_][\\w.]*(=(?!>))?|[-+*/%](?!>)" })]
69
+ }
70
+ ];
71
+ return {
72
+ name: "Lasso",
73
+ aliases: ["ls", "lassoscript"],
74
+ case_insensitive: true,
75
+ keywords: LASSO_KEYWORDS,
76
+ contains: [
77
+ {
78
+ className: "meta",
79
+ begin: LASSO_CLOSE_RE,
80
+ relevance: 0,
81
+ starts: {
82
+ end: "\\[|" + LASSO_ANGLE_RE,
83
+ returnEnd: true,
84
+ relevance: 0,
85
+ contains: [HTML_COMMENT]
86
+ }
87
+ },
88
+ LASSO_NOPROCESS,
89
+ LASSO_START,
90
+ {
91
+ className: "meta",
92
+ begin: "\\[no_square_brackets",
93
+ starts: {
94
+ end: "\\[/no_square_brackets\\]",
95
+ keywords: LASSO_KEYWORDS,
96
+ contains: [
97
+ {
98
+ className: "meta",
99
+ begin: LASSO_CLOSE_RE,
100
+ relevance: 0,
101
+ starts: {
102
+ end: "\\[noprocess\\]|" + LASSO_ANGLE_RE,
103
+ returnEnd: true,
104
+ contains: [HTML_COMMENT]
105
+ }
106
+ },
107
+ LASSO_NOPROCESS,
108
+ LASSO_START
109
+ ].concat(LASSO_CODE)
110
+ }
111
+ },
112
+ {
113
+ className: "meta",
114
+ begin: "\\[",
115
+ relevance: 0
116
+ },
117
+ {
118
+ className: "meta",
119
+ begin: "^#!",
120
+ end: "lasso9$",
121
+ relevance: 10
122
+ }
123
+ ].concat(LASSO_CODE)
124
+ };
125
+ }
126
+ //#endregion
127
+ export { lasso as default };