@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,346 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/n1ql.js
2
+ function n1ql(hljs) {
3
+ return {
4
+ name: "N1QL",
5
+ case_insensitive: true,
6
+ contains: [{
7
+ beginKeywords: "build create index delete drop explain infer|10 insert merge prepare select update upsert|10",
8
+ end: /;/,
9
+ keywords: {
10
+ keyword: [
11
+ "all",
12
+ "alter",
13
+ "analyze",
14
+ "and",
15
+ "any",
16
+ "array",
17
+ "as",
18
+ "asc",
19
+ "begin",
20
+ "between",
21
+ "binary",
22
+ "boolean",
23
+ "break",
24
+ "bucket",
25
+ "build",
26
+ "by",
27
+ "call",
28
+ "case",
29
+ "cast",
30
+ "cluster",
31
+ "collate",
32
+ "collection",
33
+ "commit",
34
+ "connect",
35
+ "continue",
36
+ "correlate",
37
+ "cover",
38
+ "create",
39
+ "database",
40
+ "dataset",
41
+ "datastore",
42
+ "declare",
43
+ "decrement",
44
+ "delete",
45
+ "derived",
46
+ "desc",
47
+ "describe",
48
+ "distinct",
49
+ "do",
50
+ "drop",
51
+ "each",
52
+ "element",
53
+ "else",
54
+ "end",
55
+ "every",
56
+ "except",
57
+ "exclude",
58
+ "execute",
59
+ "exists",
60
+ "explain",
61
+ "fetch",
62
+ "first",
63
+ "flatten",
64
+ "for",
65
+ "force",
66
+ "from",
67
+ "function",
68
+ "grant",
69
+ "group",
70
+ "gsi",
71
+ "having",
72
+ "if",
73
+ "ignore",
74
+ "ilike",
75
+ "in",
76
+ "include",
77
+ "increment",
78
+ "index",
79
+ "infer",
80
+ "inline",
81
+ "inner",
82
+ "insert",
83
+ "intersect",
84
+ "into",
85
+ "is",
86
+ "join",
87
+ "key",
88
+ "keys",
89
+ "keyspace",
90
+ "known",
91
+ "last",
92
+ "left",
93
+ "let",
94
+ "letting",
95
+ "like",
96
+ "limit",
97
+ "lsm",
98
+ "map",
99
+ "mapping",
100
+ "matched",
101
+ "materialized",
102
+ "merge",
103
+ "minus",
104
+ "namespace",
105
+ "nest",
106
+ "not",
107
+ "number",
108
+ "object",
109
+ "offset",
110
+ "on",
111
+ "option",
112
+ "or",
113
+ "order",
114
+ "outer",
115
+ "over",
116
+ "parse",
117
+ "partition",
118
+ "password",
119
+ "path",
120
+ "pool",
121
+ "prepare",
122
+ "primary",
123
+ "private",
124
+ "privilege",
125
+ "procedure",
126
+ "public",
127
+ "raw",
128
+ "realm",
129
+ "reduce",
130
+ "rename",
131
+ "return",
132
+ "returning",
133
+ "revoke",
134
+ "right",
135
+ "role",
136
+ "rollback",
137
+ "satisfies",
138
+ "schema",
139
+ "select",
140
+ "self",
141
+ "semi",
142
+ "set",
143
+ "show",
144
+ "some",
145
+ "start",
146
+ "statistics",
147
+ "string",
148
+ "system",
149
+ "then",
150
+ "to",
151
+ "transaction",
152
+ "trigger",
153
+ "truncate",
154
+ "under",
155
+ "union",
156
+ "unique",
157
+ "unknown",
158
+ "unnest",
159
+ "unset",
160
+ "update",
161
+ "upsert",
162
+ "use",
163
+ "user",
164
+ "using",
165
+ "validate",
166
+ "value",
167
+ "valued",
168
+ "values",
169
+ "via",
170
+ "view",
171
+ "when",
172
+ "where",
173
+ "while",
174
+ "with",
175
+ "within",
176
+ "work",
177
+ "xor"
178
+ ],
179
+ literal: [
180
+ "true",
181
+ "false",
182
+ "null",
183
+ "missing|5"
184
+ ],
185
+ built_in: [
186
+ "array_agg",
187
+ "array_append",
188
+ "array_concat",
189
+ "array_contains",
190
+ "array_count",
191
+ "array_distinct",
192
+ "array_ifnull",
193
+ "array_length",
194
+ "array_max",
195
+ "array_min",
196
+ "array_position",
197
+ "array_prepend",
198
+ "array_put",
199
+ "array_range",
200
+ "array_remove",
201
+ "array_repeat",
202
+ "array_replace",
203
+ "array_reverse",
204
+ "array_sort",
205
+ "array_sum",
206
+ "avg",
207
+ "count",
208
+ "max",
209
+ "min",
210
+ "sum",
211
+ "greatest",
212
+ "least",
213
+ "ifmissing",
214
+ "ifmissingornull",
215
+ "ifnull",
216
+ "missingif",
217
+ "nullif",
218
+ "ifinf",
219
+ "ifnan",
220
+ "ifnanorinf",
221
+ "naninf",
222
+ "neginfif",
223
+ "posinfif",
224
+ "clock_millis",
225
+ "clock_str",
226
+ "date_add_millis",
227
+ "date_add_str",
228
+ "date_diff_millis",
229
+ "date_diff_str",
230
+ "date_part_millis",
231
+ "date_part_str",
232
+ "date_trunc_millis",
233
+ "date_trunc_str",
234
+ "duration_to_str",
235
+ "millis",
236
+ "str_to_millis",
237
+ "millis_to_str",
238
+ "millis_to_utc",
239
+ "millis_to_zone_name",
240
+ "now_millis",
241
+ "now_str",
242
+ "str_to_duration",
243
+ "str_to_utc",
244
+ "str_to_zone_name",
245
+ "decode_json",
246
+ "encode_json",
247
+ "encoded_size",
248
+ "poly_length",
249
+ "base64",
250
+ "base64_encode",
251
+ "base64_decode",
252
+ "meta",
253
+ "uuid",
254
+ "abs",
255
+ "acos",
256
+ "asin",
257
+ "atan",
258
+ "atan2",
259
+ "ceil",
260
+ "cos",
261
+ "degrees",
262
+ "e",
263
+ "exp",
264
+ "ln",
265
+ "log",
266
+ "floor",
267
+ "pi",
268
+ "power",
269
+ "radians",
270
+ "random",
271
+ "round",
272
+ "sign",
273
+ "sin",
274
+ "sqrt",
275
+ "tan",
276
+ "trunc",
277
+ "object_length",
278
+ "object_names",
279
+ "object_pairs",
280
+ "object_inner_pairs",
281
+ "object_values",
282
+ "object_inner_values",
283
+ "object_add",
284
+ "object_put",
285
+ "object_remove",
286
+ "object_unwrap",
287
+ "regexp_contains",
288
+ "regexp_like",
289
+ "regexp_position",
290
+ "regexp_replace",
291
+ "contains",
292
+ "initcap",
293
+ "length",
294
+ "lower",
295
+ "ltrim",
296
+ "position",
297
+ "repeat",
298
+ "replace",
299
+ "rtrim",
300
+ "split",
301
+ "substr",
302
+ "title",
303
+ "trim",
304
+ "upper",
305
+ "isarray",
306
+ "isatom",
307
+ "isboolean",
308
+ "isnumber",
309
+ "isobject",
310
+ "isstring",
311
+ "type",
312
+ "toarray",
313
+ "toatom",
314
+ "toboolean",
315
+ "tonumber",
316
+ "toobject",
317
+ "tostring"
318
+ ]
319
+ },
320
+ contains: [
321
+ {
322
+ className: "string",
323
+ begin: "'",
324
+ end: "'",
325
+ contains: [hljs.BACKSLASH_ESCAPE]
326
+ },
327
+ {
328
+ className: "string",
329
+ begin: "\"",
330
+ end: "\"",
331
+ contains: [hljs.BACKSLASH_ESCAPE]
332
+ },
333
+ {
334
+ className: "symbol",
335
+ begin: "`",
336
+ end: "`",
337
+ contains: [hljs.BACKSLASH_ESCAPE]
338
+ },
339
+ hljs.C_NUMBER_MODE,
340
+ hljs.C_BLOCK_COMMENT_MODE
341
+ ]
342
+ }, hljs.C_BLOCK_COMMENT_MODE]
343
+ };
344
+ }
345
+ //#endregion
346
+ export { n1ql as default };
@@ -0,0 +1,66 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/nestedtext.js
2
+ /** @type LanguageFn */
3
+ function nestedtext(hljs) {
4
+ return {
5
+ name: "Nested Text",
6
+ aliases: ["nt"],
7
+ contains: [
8
+ hljs.inherit(hljs.HASH_COMMENT_MODE, {
9
+ begin: /^\s*(?=#)/,
10
+ excludeBegin: true
11
+ }),
12
+ {
13
+ variants: [{ match: [
14
+ /^\s*/,
15
+ /-/,
16
+ /[ ]/,
17
+ /.*$/
18
+ ] }, { match: [/^\s*/, /-$/] }],
19
+ className: {
20
+ 2: "bullet",
21
+ 4: "string"
22
+ }
23
+ },
24
+ {
25
+ match: [
26
+ /^\s*/,
27
+ />/,
28
+ /[ ]/,
29
+ /.*$/
30
+ ],
31
+ className: {
32
+ 2: "punctuation",
33
+ 4: "string"
34
+ }
35
+ },
36
+ {
37
+ match: [
38
+ /^\s*(?=\S)/,
39
+ /[^:]+/,
40
+ /:\s*/,
41
+ /$/
42
+ ],
43
+ className: {
44
+ 2: "attribute",
45
+ 3: "punctuation"
46
+ }
47
+ },
48
+ {
49
+ match: [
50
+ /^\s*(?=\S)/,
51
+ /[^:]*[^: ]/,
52
+ /[ ]*:/,
53
+ /[ ]/,
54
+ /.*$/
55
+ ],
56
+ className: {
57
+ 2: "attribute",
58
+ 3: "punctuation",
59
+ 5: "string"
60
+ }
61
+ }
62
+ ]
63
+ };
64
+ }
65
+ //#endregion
66
+ export { nestedtext as default };
@@ -0,0 +1,127 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/nginx.js
2
+ /** @type LanguageFn */
3
+ function nginx(hljs) {
4
+ const regex = hljs.regex;
5
+ const VAR = {
6
+ className: "variable",
7
+ variants: [
8
+ { begin: /\$\d+/ },
9
+ { begin: /\$\{\w+\}/ },
10
+ { begin: regex.concat(/[$@]/, hljs.UNDERSCORE_IDENT_RE) }
11
+ ]
12
+ };
13
+ const DEFAULT = {
14
+ endsWithParent: true,
15
+ keywords: {
16
+ $pattern: /[a-z_]{2,}|\/dev\/poll/,
17
+ literal: [
18
+ "on",
19
+ "off",
20
+ "yes",
21
+ "no",
22
+ "true",
23
+ "false",
24
+ "none",
25
+ "blocked",
26
+ "debug",
27
+ "info",
28
+ "notice",
29
+ "warn",
30
+ "error",
31
+ "crit",
32
+ "select",
33
+ "break",
34
+ "last",
35
+ "permanent",
36
+ "redirect",
37
+ "kqueue",
38
+ "rtsig",
39
+ "epoll",
40
+ "poll",
41
+ "/dev/poll"
42
+ ]
43
+ },
44
+ relevance: 0,
45
+ illegal: "=>",
46
+ contains: [
47
+ hljs.HASH_COMMENT_MODE,
48
+ {
49
+ className: "string",
50
+ contains: [hljs.BACKSLASH_ESCAPE, VAR],
51
+ variants: [{
52
+ begin: /"/,
53
+ end: /"/
54
+ }, {
55
+ begin: /'/,
56
+ end: /'/
57
+ }]
58
+ },
59
+ {
60
+ begin: "([a-z]+):/",
61
+ end: "\\s",
62
+ endsWithParent: true,
63
+ excludeEnd: true,
64
+ contains: [VAR]
65
+ },
66
+ {
67
+ className: "regexp",
68
+ contains: [hljs.BACKSLASH_ESCAPE, VAR],
69
+ variants: [
70
+ {
71
+ begin: "\\s\\^",
72
+ end: "\\s|\\{|;",
73
+ returnEnd: true
74
+ },
75
+ {
76
+ begin: "~\\*?\\s+",
77
+ end: "\\s|\\{|;",
78
+ returnEnd: true
79
+ },
80
+ { begin: "\\*(\\.[a-z\\-]+)+" },
81
+ { begin: "([a-z\\-]+\\.)+\\*" }
82
+ ]
83
+ },
84
+ {
85
+ className: "number",
86
+ begin: "\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"
87
+ },
88
+ {
89
+ className: "number",
90
+ begin: "\\b\\d+[kKmMgGdshdwy]?\\b",
91
+ relevance: 0
92
+ },
93
+ VAR
94
+ ]
95
+ };
96
+ return {
97
+ name: "Nginx config",
98
+ aliases: ["nginxconf"],
99
+ contains: [
100
+ hljs.HASH_COMMENT_MODE,
101
+ {
102
+ beginKeywords: "upstream location",
103
+ end: /;|\{/,
104
+ contains: DEFAULT.contains,
105
+ keywords: { section: "upstream location" }
106
+ },
107
+ {
108
+ className: "section",
109
+ begin: regex.concat(hljs.UNDERSCORE_IDENT_RE + regex.lookahead(/\s+\{/)),
110
+ relevance: 0
111
+ },
112
+ {
113
+ begin: regex.lookahead(hljs.UNDERSCORE_IDENT_RE + "\\s"),
114
+ end: ";|\\{",
115
+ contains: [{
116
+ className: "attribute",
117
+ begin: hljs.UNDERSCORE_IDENT_RE,
118
+ starts: DEFAULT
119
+ }],
120
+ relevance: 0
121
+ }
122
+ ],
123
+ illegal: "[^\\s\\}\\{]"
124
+ };
125
+ }
126
+ //#endregion
127
+ export { nginx as default };
@@ -0,0 +1,174 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/nim.js
2
+ function nim(hljs) {
3
+ return {
4
+ name: "Nim",
5
+ keywords: {
6
+ keyword: [
7
+ "addr",
8
+ "and",
9
+ "as",
10
+ "asm",
11
+ "bind",
12
+ "block",
13
+ "break",
14
+ "case",
15
+ "cast",
16
+ "concept",
17
+ "const",
18
+ "continue",
19
+ "converter",
20
+ "defer",
21
+ "discard",
22
+ "distinct",
23
+ "div",
24
+ "do",
25
+ "elif",
26
+ "else",
27
+ "end",
28
+ "enum",
29
+ "except",
30
+ "export",
31
+ "finally",
32
+ "for",
33
+ "from",
34
+ "func",
35
+ "generic",
36
+ "guarded",
37
+ "if",
38
+ "import",
39
+ "in",
40
+ "include",
41
+ "interface",
42
+ "is",
43
+ "isnot",
44
+ "iterator",
45
+ "let",
46
+ "macro",
47
+ "method",
48
+ "mixin",
49
+ "mod",
50
+ "nil",
51
+ "not",
52
+ "notin",
53
+ "object",
54
+ "of",
55
+ "or",
56
+ "out",
57
+ "proc",
58
+ "ptr",
59
+ "raise",
60
+ "ref",
61
+ "return",
62
+ "shared",
63
+ "shl",
64
+ "shr",
65
+ "static",
66
+ "template",
67
+ "try",
68
+ "tuple",
69
+ "type",
70
+ "using",
71
+ "var",
72
+ "when",
73
+ "while",
74
+ "with",
75
+ "without",
76
+ "xor",
77
+ "yield"
78
+ ],
79
+ literal: ["true", "false"],
80
+ type: [
81
+ "int",
82
+ "int8",
83
+ "int16",
84
+ "int32",
85
+ "int64",
86
+ "uint",
87
+ "uint8",
88
+ "uint16",
89
+ "uint32",
90
+ "uint64",
91
+ "float",
92
+ "float32",
93
+ "float64",
94
+ "bool",
95
+ "char",
96
+ "string",
97
+ "cstring",
98
+ "pointer",
99
+ "expr",
100
+ "stmt",
101
+ "void",
102
+ "auto",
103
+ "any",
104
+ "range",
105
+ "array",
106
+ "openarray",
107
+ "varargs",
108
+ "seq",
109
+ "set",
110
+ "clong",
111
+ "culong",
112
+ "cchar",
113
+ "cschar",
114
+ "cshort",
115
+ "cint",
116
+ "csize",
117
+ "clonglong",
118
+ "cfloat",
119
+ "cdouble",
120
+ "clongdouble",
121
+ "cuchar",
122
+ "cushort",
123
+ "cuint",
124
+ "culonglong",
125
+ "cstringarray",
126
+ "semistatic"
127
+ ],
128
+ built_in: [
129
+ "stdin",
130
+ "stdout",
131
+ "stderr",
132
+ "result"
133
+ ]
134
+ },
135
+ contains: [
136
+ {
137
+ className: "meta",
138
+ begin: /\{\./,
139
+ end: /\.\}/,
140
+ relevance: 10
141
+ },
142
+ {
143
+ className: "string",
144
+ begin: /[a-zA-Z]\w*"/,
145
+ end: /"/,
146
+ contains: [{ begin: /""/ }]
147
+ },
148
+ {
149
+ className: "string",
150
+ begin: /([a-zA-Z]\w*)?"""/,
151
+ end: /"""/
152
+ },
153
+ hljs.QUOTE_STRING_MODE,
154
+ {
155
+ className: "type",
156
+ begin: /\b[A-Z]\w+\b/,
157
+ relevance: 0
158
+ },
159
+ {
160
+ className: "number",
161
+ relevance: 0,
162
+ variants: [
163
+ { begin: /\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/ },
164
+ { begin: /\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/ },
165
+ { begin: /\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/ },
166
+ { begin: /\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/ }
167
+ ]
168
+ },
169
+ hljs.HASH_COMMENT_MODE
170
+ ]
171
+ };
172
+ }
173
+ //#endregion
174
+ export { nim as default };