@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,66 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/dns.js
2
+ /** @type LanguageFn */
3
+ function dns(hljs) {
4
+ return {
5
+ name: "DNS Zone",
6
+ aliases: ["bind", "zone"],
7
+ keywords: [
8
+ "IN",
9
+ "A",
10
+ "AAAA",
11
+ "AFSDB",
12
+ "APL",
13
+ "CAA",
14
+ "CDNSKEY",
15
+ "CDS",
16
+ "CERT",
17
+ "CNAME",
18
+ "DHCID",
19
+ "DLV",
20
+ "DNAME",
21
+ "DNSKEY",
22
+ "DS",
23
+ "HIP",
24
+ "IPSECKEY",
25
+ "KEY",
26
+ "KX",
27
+ "LOC",
28
+ "MX",
29
+ "NAPTR",
30
+ "NS",
31
+ "NSEC",
32
+ "NSEC3",
33
+ "NSEC3PARAM",
34
+ "PTR",
35
+ "RRSIG",
36
+ "RP",
37
+ "SIG",
38
+ "SOA",
39
+ "SRV",
40
+ "SSHFP",
41
+ "TA",
42
+ "TKEY",
43
+ "TLSA",
44
+ "TSIG",
45
+ "TXT"
46
+ ],
47
+ contains: [
48
+ hljs.COMMENT(";", "$", { relevance: 0 }),
49
+ {
50
+ className: "meta",
51
+ begin: /^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/
52
+ },
53
+ {
54
+ className: "number",
55
+ begin: "((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"
56
+ },
57
+ {
58
+ className: "number",
59
+ begin: "((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"
60
+ },
61
+ hljs.inherit(hljs.NUMBER_MODE, { begin: /\b\d+[dhwm]?/ })
62
+ ]
63
+ };
64
+ }
65
+ //#endregion
66
+ export { dns as default };
@@ -0,0 +1,35 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/dockerfile.js
2
+ /** @type LanguageFn */
3
+ function dockerfile(hljs) {
4
+ return {
5
+ name: "Dockerfile",
6
+ aliases: ["docker"],
7
+ case_insensitive: true,
8
+ keywords: [
9
+ "from",
10
+ "maintainer",
11
+ "expose",
12
+ "env",
13
+ "arg",
14
+ "user",
15
+ "onbuild",
16
+ "stopsignal"
17
+ ],
18
+ contains: [
19
+ hljs.HASH_COMMENT_MODE,
20
+ hljs.APOS_STRING_MODE,
21
+ hljs.QUOTE_STRING_MODE,
22
+ hljs.NUMBER_MODE,
23
+ {
24
+ beginKeywords: "run cmd entrypoint volume add copy workdir label healthcheck shell",
25
+ starts: {
26
+ end: /[^\\]$/,
27
+ subLanguage: "bash"
28
+ }
29
+ }
30
+ ],
31
+ illegal: "</"
32
+ };
33
+ }
34
+ //#endregion
35
+ export { dockerfile as default };
@@ -0,0 +1,147 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/dos.js
2
+ /** @type LanguageFn */
3
+ function dos(hljs) {
4
+ const COMMENT = hljs.COMMENT(/^\s*@?rem\b/, /$/, { relevance: 10 });
5
+ return {
6
+ name: "Batch file (DOS)",
7
+ aliases: ["bat", "cmd"],
8
+ case_insensitive: true,
9
+ illegal: /\/\*/,
10
+ keywords: {
11
+ keyword: [
12
+ "if",
13
+ "else",
14
+ "goto",
15
+ "for",
16
+ "in",
17
+ "do",
18
+ "call",
19
+ "exit",
20
+ "not",
21
+ "exist",
22
+ "errorlevel",
23
+ "defined",
24
+ "equ",
25
+ "neq",
26
+ "lss",
27
+ "leq",
28
+ "gtr",
29
+ "geq"
30
+ ],
31
+ built_in: [
32
+ "prn",
33
+ "nul",
34
+ "lpt3",
35
+ "lpt2",
36
+ "lpt1",
37
+ "con",
38
+ "com4",
39
+ "com3",
40
+ "com2",
41
+ "com1",
42
+ "aux",
43
+ "shift",
44
+ "cd",
45
+ "dir",
46
+ "echo",
47
+ "setlocal",
48
+ "endlocal",
49
+ "set",
50
+ "pause",
51
+ "copy",
52
+ "append",
53
+ "assoc",
54
+ "at",
55
+ "attrib",
56
+ "break",
57
+ "cacls",
58
+ "cd",
59
+ "chcp",
60
+ "chdir",
61
+ "chkdsk",
62
+ "chkntfs",
63
+ "cls",
64
+ "cmd",
65
+ "color",
66
+ "comp",
67
+ "compact",
68
+ "convert",
69
+ "date",
70
+ "dir",
71
+ "diskcomp",
72
+ "diskcopy",
73
+ "doskey",
74
+ "erase",
75
+ "fs",
76
+ "find",
77
+ "findstr",
78
+ "format",
79
+ "ftype",
80
+ "graftabl",
81
+ "help",
82
+ "keyb",
83
+ "label",
84
+ "md",
85
+ "mkdir",
86
+ "mode",
87
+ "more",
88
+ "move",
89
+ "path",
90
+ "pause",
91
+ "print",
92
+ "popd",
93
+ "pushd",
94
+ "promt",
95
+ "rd",
96
+ "recover",
97
+ "rem",
98
+ "rename",
99
+ "replace",
100
+ "restore",
101
+ "rmdir",
102
+ "shift",
103
+ "sort",
104
+ "start",
105
+ "subst",
106
+ "time",
107
+ "title",
108
+ "tree",
109
+ "type",
110
+ "ver",
111
+ "verify",
112
+ "vol",
113
+ "ping",
114
+ "net",
115
+ "ipconfig",
116
+ "taskkill",
117
+ "xcopy",
118
+ "ren",
119
+ "del"
120
+ ]
121
+ },
122
+ contains: [
123
+ {
124
+ className: "variable",
125
+ begin: /%%[^ ]|%[^ ]+?%|![^ ]+?!/
126
+ },
127
+ {
128
+ className: "function",
129
+ begin: {
130
+ className: "symbol",
131
+ begin: "^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",
132
+ relevance: 0
133
+ }.begin,
134
+ end: "goto:eof",
135
+ contains: [hljs.inherit(hljs.TITLE_MODE, { begin: "([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*" }), COMMENT]
136
+ },
137
+ {
138
+ className: "number",
139
+ begin: "\\b\\d+",
140
+ relevance: 0
141
+ },
142
+ COMMENT
143
+ ]
144
+ };
145
+ }
146
+ //#endregion
147
+ export { dos as default };
@@ -0,0 +1,55 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/dsconfig.js
2
+ /** @type LanguageFn */
3
+ function dsconfig(hljs) {
4
+ return {
5
+ keywords: "dsconfig",
6
+ contains: [
7
+ {
8
+ className: "keyword",
9
+ begin: "^dsconfig",
10
+ end: /\s/,
11
+ excludeEnd: true,
12
+ relevance: 10
13
+ },
14
+ {
15
+ className: "built_in",
16
+ begin: /(list|create|get|set|delete)-(\w+)/,
17
+ end: /\s/,
18
+ excludeEnd: true,
19
+ illegal: "!@#$%^&*()",
20
+ relevance: 10
21
+ },
22
+ {
23
+ className: "built_in",
24
+ begin: /--(\w+)/,
25
+ end: /\s/,
26
+ excludeEnd: true
27
+ },
28
+ {
29
+ className: "string",
30
+ begin: /"/,
31
+ end: /"/
32
+ },
33
+ {
34
+ className: "string",
35
+ begin: /'/,
36
+ end: /'/
37
+ },
38
+ {
39
+ className: "string",
40
+ begin: /[\w\-?]+:\w+/,
41
+ end: /\W/,
42
+ relevance: 0
43
+ },
44
+ {
45
+ className: "string",
46
+ begin: /\w+(\-\w+)*/,
47
+ end: /(?=\W)/,
48
+ relevance: 0
49
+ },
50
+ hljs.HASH_COMMENT_MODE
51
+ ]
52
+ };
53
+ }
54
+ //#endregion
55
+ export { dsconfig as default };
@@ -0,0 +1,119 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/dts.js
2
+ /** @type LanguageFn */
3
+ function dts(hljs) {
4
+ const STRINGS = {
5
+ className: "string",
6
+ variants: [
7
+ hljs.inherit(hljs.QUOTE_STRING_MODE, { begin: "((u8?|U)|L)?\"" }),
8
+ {
9
+ begin: "(u8?|U)?R\"",
10
+ end: "\"",
11
+ contains: [hljs.BACKSLASH_ESCAPE]
12
+ },
13
+ {
14
+ begin: "'\\\\?.",
15
+ end: "'",
16
+ illegal: "."
17
+ }
18
+ ]
19
+ };
20
+ const NUMBERS = {
21
+ className: "number",
22
+ variants: [{ begin: "\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)" }, { begin: hljs.C_NUMBER_RE }],
23
+ relevance: 0
24
+ };
25
+ const PREPROCESSOR = {
26
+ className: "meta",
27
+ begin: "#",
28
+ end: "$",
29
+ keywords: { keyword: "if else elif endif define undef ifdef ifndef" },
30
+ contains: [
31
+ {
32
+ begin: /\\\n/,
33
+ relevance: 0
34
+ },
35
+ {
36
+ beginKeywords: "include",
37
+ end: "$",
38
+ keywords: { keyword: "include" },
39
+ contains: [hljs.inherit(STRINGS, { className: "string" }), {
40
+ className: "string",
41
+ begin: "<",
42
+ end: ">",
43
+ illegal: "\\n"
44
+ }]
45
+ },
46
+ STRINGS,
47
+ hljs.C_LINE_COMMENT_MODE,
48
+ hljs.C_BLOCK_COMMENT_MODE
49
+ ]
50
+ };
51
+ const REFERENCE = {
52
+ className: "variable",
53
+ begin: /&[a-z\d_]*\b/
54
+ };
55
+ return {
56
+ name: "Device Tree",
57
+ contains: [
58
+ {
59
+ className: "title.class",
60
+ begin: /^\/(?=\s*\{)/,
61
+ relevance: 10
62
+ },
63
+ REFERENCE,
64
+ {
65
+ className: "keyword",
66
+ begin: "/[a-z][a-z\\d-]*/"
67
+ },
68
+ {
69
+ className: "symbol",
70
+ begin: "^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"
71
+ },
72
+ {
73
+ className: "title.class",
74
+ begin: /[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,
75
+ relevance: .2
76
+ },
77
+ {
78
+ relevance: 0,
79
+ match: [
80
+ /[a-z][a-z-,]+/,
81
+ /\s*/,
82
+ /=/
83
+ ],
84
+ scope: {
85
+ 1: "attr",
86
+ 3: "operator"
87
+ }
88
+ },
89
+ {
90
+ match: /[a-z][a-z-,]+(?=;)/,
91
+ relevance: 0,
92
+ scope: "attr"
93
+ },
94
+ {
95
+ className: "params",
96
+ relevance: 0,
97
+ begin: "<",
98
+ end: ">",
99
+ contains: [NUMBERS, REFERENCE]
100
+ },
101
+ hljs.C_LINE_COMMENT_MODE,
102
+ hljs.C_BLOCK_COMMENT_MODE,
103
+ NUMBERS,
104
+ STRINGS,
105
+ PREPROCESSOR,
106
+ {
107
+ scope: "punctuation",
108
+ relevance: 0,
109
+ match: /\};|[;{}]/
110
+ },
111
+ {
112
+ begin: hljs.IDENT_RE + "::",
113
+ keywords: ""
114
+ }
115
+ ]
116
+ };
117
+ }
118
+ //#endregion
119
+ export { dts as default };
@@ -0,0 +1,33 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/dust.js
2
+ /** @type LanguageFn */
3
+ function dust(hljs) {
4
+ return {
5
+ name: "Dust",
6
+ aliases: ["dst"],
7
+ case_insensitive: true,
8
+ subLanguage: "xml",
9
+ contains: [{
10
+ className: "template-tag",
11
+ begin: /\{[#\/]/,
12
+ end: /\}/,
13
+ illegal: /;/,
14
+ contains: [{
15
+ className: "name",
16
+ begin: /[a-zA-Z\.-]+/,
17
+ starts: {
18
+ endsWithParent: true,
19
+ relevance: 0,
20
+ contains: [hljs.QUOTE_STRING_MODE]
21
+ }
22
+ }]
23
+ }, {
24
+ className: "template-variable",
25
+ begin: /\{/,
26
+ end: /\}/,
27
+ illegal: /;/,
28
+ keywords: "if eq ne lt lte gt gte select default math sep"
29
+ }]
30
+ };
31
+ }
32
+ //#endregion
33
+ export { dust as default };
@@ -0,0 +1,40 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/ebnf.js
2
+ /** @type LanguageFn */
3
+ function ebnf(hljs) {
4
+ const commentMode = hljs.COMMENT(/\(\*/, /\*\)/);
5
+ return {
6
+ name: "Extended Backus-Naur Form",
7
+ illegal: /\S/,
8
+ contains: [
9
+ commentMode,
10
+ {
11
+ className: "attribute",
12
+ begin: /^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/
13
+ },
14
+ {
15
+ begin: /=/,
16
+ end: /[.;]/,
17
+ contains: [
18
+ commentMode,
19
+ {
20
+ className: "meta",
21
+ begin: /\?.*\?/
22
+ },
23
+ {
24
+ className: "string",
25
+ variants: [
26
+ hljs.APOS_STRING_MODE,
27
+ hljs.QUOTE_STRING_MODE,
28
+ {
29
+ begin: "`",
30
+ end: "`"
31
+ }
32
+ ]
33
+ }
34
+ ]
35
+ }
36
+ ]
37
+ };
38
+ }
39
+ //#endregion
40
+ export { ebnf as default };