@threadlabs/looma 0.18.5 → 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 +39 -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,86 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/capnproto.js
2
+ /** @type LanguageFn */
3
+ function capnproto(hljs) {
4
+ const KEYWORDS = [
5
+ "struct",
6
+ "enum",
7
+ "interface",
8
+ "union",
9
+ "group",
10
+ "import",
11
+ "using",
12
+ "const",
13
+ "annotation",
14
+ "extends",
15
+ "in",
16
+ "of",
17
+ "on",
18
+ "as",
19
+ "with",
20
+ "from",
21
+ "fixed"
22
+ ];
23
+ const TYPES = [
24
+ "Void",
25
+ "Bool",
26
+ "Int8",
27
+ "Int16",
28
+ "Int32",
29
+ "Int64",
30
+ "UInt8",
31
+ "UInt16",
32
+ "UInt32",
33
+ "UInt64",
34
+ "Float32",
35
+ "Float64",
36
+ "Text",
37
+ "Data",
38
+ "AnyPointer",
39
+ "AnyStruct",
40
+ "Capability",
41
+ "List"
42
+ ];
43
+ const LITERALS = ["true", "false"];
44
+ const CLASS_DEFINITION = {
45
+ variants: [{ match: [
46
+ /(struct|enum|interface)/,
47
+ /\s+/,
48
+ hljs.IDENT_RE
49
+ ] }, { match: [
50
+ /extends/,
51
+ /\s*\(/,
52
+ hljs.IDENT_RE,
53
+ /\s*\)/
54
+ ] }],
55
+ scope: {
56
+ 1: "keyword",
57
+ 3: "title.class"
58
+ }
59
+ };
60
+ return {
61
+ name: "Cap’n Proto",
62
+ aliases: ["capnp"],
63
+ keywords: {
64
+ keyword: KEYWORDS,
65
+ type: TYPES,
66
+ literal: LITERALS
67
+ },
68
+ contains: [
69
+ hljs.QUOTE_STRING_MODE,
70
+ hljs.NUMBER_MODE,
71
+ hljs.HASH_COMMENT_MODE,
72
+ {
73
+ className: "meta",
74
+ begin: /@0x[\w\d]{16};/,
75
+ illegal: /\n/
76
+ },
77
+ {
78
+ className: "symbol",
79
+ begin: /@\d+\b/
80
+ },
81
+ CLASS_DEFINITION
82
+ ]
83
+ };
84
+ }
85
+ //#endregion
86
+ export { capnproto as default };
@@ -0,0 +1,125 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/ceylon.js
2
+ /** @type LanguageFn */
3
+ function ceylon(hljs) {
4
+ const KEYWORDS = [
5
+ "assembly",
6
+ "module",
7
+ "package",
8
+ "import",
9
+ "alias",
10
+ "class",
11
+ "interface",
12
+ "object",
13
+ "given",
14
+ "value",
15
+ "assign",
16
+ "void",
17
+ "function",
18
+ "new",
19
+ "of",
20
+ "extends",
21
+ "satisfies",
22
+ "abstracts",
23
+ "in",
24
+ "out",
25
+ "return",
26
+ "break",
27
+ "continue",
28
+ "throw",
29
+ "assert",
30
+ "dynamic",
31
+ "if",
32
+ "else",
33
+ "switch",
34
+ "case",
35
+ "for",
36
+ "while",
37
+ "try",
38
+ "catch",
39
+ "finally",
40
+ "then",
41
+ "let",
42
+ "this",
43
+ "outer",
44
+ "super",
45
+ "is",
46
+ "exists",
47
+ "nonempty"
48
+ ];
49
+ const DECLARATION_MODIFIERS = [
50
+ "shared",
51
+ "abstract",
52
+ "formal",
53
+ "default",
54
+ "actual",
55
+ "variable",
56
+ "late",
57
+ "native",
58
+ "deprecated",
59
+ "final",
60
+ "sealed",
61
+ "annotation",
62
+ "suppressWarnings",
63
+ "small"
64
+ ];
65
+ const DOCUMENTATION = [
66
+ "doc",
67
+ "by",
68
+ "license",
69
+ "see",
70
+ "throws",
71
+ "tagged"
72
+ ];
73
+ const SUBST = {
74
+ className: "subst",
75
+ excludeBegin: true,
76
+ excludeEnd: true,
77
+ begin: /``/,
78
+ end: /``/,
79
+ keywords: KEYWORDS,
80
+ relevance: 10
81
+ };
82
+ const EXPRESSIONS = [
83
+ {
84
+ className: "string",
85
+ begin: "\"\"\"",
86
+ end: "\"\"\"",
87
+ relevance: 10
88
+ },
89
+ {
90
+ className: "string",
91
+ begin: "\"",
92
+ end: "\"",
93
+ contains: [SUBST]
94
+ },
95
+ {
96
+ className: "string",
97
+ begin: "'",
98
+ end: "'"
99
+ },
100
+ {
101
+ className: "number",
102
+ begin: "#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",
103
+ relevance: 0
104
+ }
105
+ ];
106
+ SUBST.contains = EXPRESSIONS;
107
+ return {
108
+ name: "Ceylon",
109
+ keywords: {
110
+ keyword: KEYWORDS.concat(DECLARATION_MODIFIERS),
111
+ meta: DOCUMENTATION
112
+ },
113
+ illegal: "\\$[^01]|#[^0-9a-fA-F]",
114
+ contains: [
115
+ hljs.C_LINE_COMMENT_MODE,
116
+ hljs.COMMENT("/\\*", "\\*/", { contains: ["self"] }),
117
+ {
118
+ className: "meta",
119
+ begin: "@[a-z]\\w*(?::\"[^\"]*\")?"
120
+ }
121
+ ].concat(EXPRESSIONS)
122
+ };
123
+ }
124
+ //#endregion
125
+ export { ceylon as default };
@@ -0,0 +1,54 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/clean.js
2
+ /** @type LanguageFn */
3
+ function clean(hljs) {
4
+ return {
5
+ name: "Clean",
6
+ aliases: ["icl", "dcl"],
7
+ keywords: {
8
+ keyword: [
9
+ "if",
10
+ "let",
11
+ "in",
12
+ "with",
13
+ "where",
14
+ "case",
15
+ "of",
16
+ "class",
17
+ "instance",
18
+ "otherwise",
19
+ "implementation",
20
+ "definition",
21
+ "system",
22
+ "module",
23
+ "from",
24
+ "import",
25
+ "qualified",
26
+ "as",
27
+ "special",
28
+ "code",
29
+ "inline",
30
+ "foreign",
31
+ "export",
32
+ "ccall",
33
+ "stdcall",
34
+ "generic",
35
+ "derive",
36
+ "infix",
37
+ "infixl",
38
+ "infixr"
39
+ ],
40
+ built_in: "Int Real Char Bool",
41
+ literal: "True False"
42
+ },
43
+ contains: [
44
+ hljs.C_LINE_COMMENT_MODE,
45
+ hljs.C_BLOCK_COMMENT_MODE,
46
+ hljs.APOS_STRING_MODE,
47
+ hljs.QUOTE_STRING_MODE,
48
+ hljs.C_NUMBER_MODE,
49
+ { begin: "->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>" }
50
+ ]
51
+ };
52
+ }
53
+ //#endregion
54
+ export { clean as default };
@@ -0,0 +1,17 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/clojure-repl.js
2
+ /** @type LanguageFn */
3
+ function clojureRepl(hljs) {
4
+ return {
5
+ name: "Clojure REPL",
6
+ contains: [{
7
+ className: "meta.prompt",
8
+ begin: /^([\w.-]+|\s*#_)?=>/,
9
+ starts: {
10
+ end: /$/,
11
+ subLanguage: "clojure"
12
+ }
13
+ }]
14
+ };
15
+ }
16
+ //#endregion
17
+ export { clojureRepl as default };
@@ -0,0 +1,133 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/clojure.js
2
+ /** @type LanguageFn */
3
+ function clojure(hljs) {
4
+ const SYMBOLSTART = "a-zA-Z_\\-!.?+*=<>&'";
5
+ const SYMBOL_RE = "[#]?[" + SYMBOLSTART + "][" + SYMBOLSTART + "0-9/;:$#]*";
6
+ const globals = "def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord";
7
+ const keywords = {
8
+ $pattern: SYMBOL_RE,
9
+ built_in: globals + " " + "cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem " + "quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? " + "set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? " + "class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? " + "string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . " + "inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last " + "drop-while while intern condp case reduced cycle split-at split-with repeat replicate " + "iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext " + "nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends " + "add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler " + "set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter " + "monitor-exit macroexpand macroexpand-1 for dosync and or " + "when when-not when-let comp juxt partial sequence memoize constantly complement identity assert " + "peek pop doto proxy first rest cons cast coll last butlast " + "sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import " + "refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! " + "assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger " + "bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline " + "flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking " + "assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! " + "reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! " + "new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty " + "hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list " + "disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer " + "chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate " + "unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta " + "lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"
10
+ };
11
+ const SYMBOL = {
12
+ begin: SYMBOL_RE,
13
+ relevance: 0
14
+ };
15
+ const NUMBER = {
16
+ scope: "number",
17
+ relevance: 0,
18
+ variants: [
19
+ { match: /[-+]?0[xX][0-9a-fA-F]+N?/ },
20
+ { match: /[-+]?0[0-7]+N?/ },
21
+ { match: /[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/ },
22
+ { match: /[-+]?[0-9]+\/[0-9]+N?/ },
23
+ { match: /[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/ },
24
+ { match: /[-+]?([1-9][0-9]*|0)N?/ }
25
+ ]
26
+ };
27
+ const CHARACTER = {
28
+ scope: "character",
29
+ variants: [
30
+ { match: /\\o[0-3]?[0-7]{1,2}/ },
31
+ { match: /\\u[0-9a-fA-F]{4}/ },
32
+ { match: /\\(newline|space|tab|formfeed|backspace|return)/ },
33
+ {
34
+ match: /\\\S/,
35
+ relevance: 0
36
+ }
37
+ ]
38
+ };
39
+ const REGEX = {
40
+ scope: "regex",
41
+ begin: /#"/,
42
+ end: /"/,
43
+ contains: [hljs.BACKSLASH_ESCAPE]
44
+ };
45
+ const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null });
46
+ const COMMA = {
47
+ scope: "punctuation",
48
+ match: /,/,
49
+ relevance: 0
50
+ };
51
+ const COMMENT = hljs.COMMENT(";", "$", { relevance: 0 });
52
+ const LITERAL = {
53
+ className: "literal",
54
+ begin: /\b(true|false|nil)\b/
55
+ };
56
+ const COLLECTION = {
57
+ begin: "\\[|(#::?" + SYMBOL_RE + ")?\\{",
58
+ end: "[\\]\\}]",
59
+ relevance: 0
60
+ };
61
+ const KEY = {
62
+ className: "symbol",
63
+ begin: "[:]{1,2}" + SYMBOL_RE
64
+ };
65
+ const LIST = {
66
+ begin: "\\(",
67
+ end: "\\)"
68
+ };
69
+ const BODY = {
70
+ endsWithParent: true,
71
+ relevance: 0
72
+ };
73
+ const NAME = {
74
+ keywords,
75
+ className: "name",
76
+ begin: SYMBOL_RE,
77
+ relevance: 0,
78
+ starts: BODY
79
+ };
80
+ const DEFAULT_CONTAINS = [
81
+ COMMA,
82
+ LIST,
83
+ CHARACTER,
84
+ REGEX,
85
+ STRING,
86
+ COMMENT,
87
+ KEY,
88
+ COLLECTION,
89
+ NUMBER,
90
+ LITERAL,
91
+ SYMBOL
92
+ ];
93
+ LIST.contains = [
94
+ {
95
+ beginKeywords: globals,
96
+ keywords: {
97
+ $pattern: SYMBOL_RE,
98
+ keyword: globals
99
+ },
100
+ end: "(\\[|#|\\d|\"|:|\\{|\\)|\\(|$)",
101
+ contains: [{
102
+ className: "title",
103
+ begin: SYMBOL_RE,
104
+ relevance: 0,
105
+ excludeEnd: true,
106
+ endsParent: true
107
+ }].concat(DEFAULT_CONTAINS)
108
+ },
109
+ NAME,
110
+ BODY
111
+ ];
112
+ BODY.contains = DEFAULT_CONTAINS;
113
+ COLLECTION.contains = DEFAULT_CONTAINS;
114
+ return {
115
+ name: "Clojure",
116
+ aliases: ["clj", "edn"],
117
+ illegal: /\S/,
118
+ contains: [
119
+ COMMA,
120
+ LIST,
121
+ CHARACTER,
122
+ REGEX,
123
+ STRING,
124
+ COMMENT,
125
+ KEY,
126
+ COLLECTION,
127
+ NUMBER,
128
+ LITERAL
129
+ ]
130
+ };
131
+ }
132
+ //#endregion
133
+ export { clojure as default };
@@ -0,0 +1,23 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/cmake.js
2
+ /** @type LanguageFn */
3
+ function cmake(hljs) {
4
+ return {
5
+ name: "CMake",
6
+ aliases: ["cmake.in"],
7
+ case_insensitive: true,
8
+ keywords: { keyword: "break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined" },
9
+ contains: [
10
+ {
11
+ className: "variable",
12
+ begin: /\$\{/,
13
+ end: /\}/
14
+ },
15
+ hljs.COMMENT(/#\[\[/, /]]/),
16
+ hljs.HASH_COMMENT_MODE,
17
+ hljs.QUOTE_STRING_MODE,
18
+ hljs.NUMBER_MODE
19
+ ]
20
+ };
21
+ }
22
+ //#endregion
23
+ export { cmake as default };