@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,184 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/d.js
2
+ /**
3
+ * Known issues:
4
+ *
5
+ * - invalid hex string literals will be recognized as a double quoted strings
6
+ * but 'x' at the beginning of string will not be matched
7
+ *
8
+ * - delimited string literals are not checked for matching end delimiter
9
+ * (not possible to do with js regexp)
10
+ *
11
+ * - content of token string is colored as a string (i.e. no keyword coloring inside a token string)
12
+ * also, content of token string is not validated to contain only valid D tokens
13
+ *
14
+ * - special token sequence rule is not strictly following D grammar (anything following #line
15
+ * up to the end of line is matched as special token sequence)
16
+ */
17
+ /** @type LanguageFn */
18
+ function d(hljs) {
19
+ /**
20
+ * Language keywords
21
+ *
22
+ * @type {Object}
23
+ */
24
+ const D_KEYWORDS = {
25
+ $pattern: hljs.UNDERSCORE_IDENT_RE,
26
+ keyword: "abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",
27
+ built_in: "bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",
28
+ literal: "false null true"
29
+ };
30
+ const integer_re = "((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))";
31
+ /**
32
+ * Escape sequence supported in D string and character literals
33
+ *
34
+ * @type {String}
35
+ */
36
+ const escape_sequence_re = "\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};";
37
+ /**
38
+ * D integer number literals
39
+ *
40
+ * @type {Object}
41
+ */
42
+ const D_INTEGER_MODE = {
43
+ className: "number",
44
+ begin: "\\b" + integer_re + "(L|u|U|Lu|LU|uL|UL)?",
45
+ relevance: 0
46
+ };
47
+ /**
48
+ * [D_FLOAT_MODE description]
49
+ * @type {Object}
50
+ */
51
+ const D_FLOAT_MODE = {
52
+ className: "number",
53
+ begin: "\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|" + integer_re + "(i|[fF]i|Li)" + ")",
54
+ relevance: 0
55
+ };
56
+ /**
57
+ * D character literal
58
+ *
59
+ * @type {Object}
60
+ */
61
+ const D_CHARACTER_MODE = {
62
+ className: "string",
63
+ begin: "'(" + escape_sequence_re + "|.)",
64
+ end: "'",
65
+ illegal: "."
66
+ };
67
+ /**
68
+ * D double quoted string literal
69
+ *
70
+ * @type {Object}
71
+ */
72
+ const D_STRING_MODE = {
73
+ className: "string",
74
+ begin: "\"",
75
+ contains: [{
76
+ begin: escape_sequence_re,
77
+ relevance: 0
78
+ }],
79
+ end: "\"[cwd]?"
80
+ };
81
+ /**
82
+ * D wysiwyg and delimited string literals
83
+ *
84
+ * @type {Object}
85
+ */
86
+ const D_WYSIWYG_DELIMITED_STRING_MODE = {
87
+ className: "string",
88
+ begin: "[rq]\"",
89
+ end: "\"[cwd]?",
90
+ relevance: 5
91
+ };
92
+ /**
93
+ * D alternate wysiwyg string literal
94
+ *
95
+ * @type {Object}
96
+ */
97
+ const D_ALTERNATE_WYSIWYG_STRING_MODE = {
98
+ className: "string",
99
+ begin: "`",
100
+ end: "`[cwd]?"
101
+ };
102
+ /**
103
+ * D hexadecimal string literal
104
+ *
105
+ * @type {Object}
106
+ */
107
+ const D_HEX_STRING_MODE = {
108
+ className: "string",
109
+ begin: "x\"[\\da-fA-F\\s\\n\\r]*\"[cwd]?",
110
+ relevance: 10
111
+ };
112
+ /**
113
+ * D delimited string literal
114
+ *
115
+ * @type {Object}
116
+ */
117
+ const D_TOKEN_STRING_MODE = {
118
+ className: "string",
119
+ begin: "q\"\\{",
120
+ end: "\\}\""
121
+ };
122
+ /**
123
+ * Hashbang support
124
+ *
125
+ * @type {Object}
126
+ */
127
+ const D_HASHBANG_MODE = {
128
+ className: "meta",
129
+ begin: "^#!",
130
+ end: "$",
131
+ relevance: 5
132
+ };
133
+ /**
134
+ * D special token sequence
135
+ *
136
+ * @type {Object}
137
+ */
138
+ const D_SPECIAL_TOKEN_SEQUENCE_MODE = {
139
+ className: "meta",
140
+ begin: "#(line)",
141
+ end: "$",
142
+ relevance: 5
143
+ };
144
+ /**
145
+ * D attributes
146
+ *
147
+ * @type {Object}
148
+ */
149
+ const D_ATTRIBUTE_MODE = {
150
+ className: "keyword",
151
+ begin: "@[a-zA-Z_][a-zA-Z_\\d]*"
152
+ };
153
+ /**
154
+ * D nesting comment
155
+ *
156
+ * @type {Object}
157
+ */
158
+ const D_NESTING_COMMENT_MODE = hljs.COMMENT("\\/\\+", "\\+\\/", {
159
+ contains: ["self"],
160
+ relevance: 10
161
+ });
162
+ return {
163
+ name: "D",
164
+ keywords: D_KEYWORDS,
165
+ contains: [
166
+ hljs.C_LINE_COMMENT_MODE,
167
+ hljs.C_BLOCK_COMMENT_MODE,
168
+ D_NESTING_COMMENT_MODE,
169
+ D_HEX_STRING_MODE,
170
+ D_STRING_MODE,
171
+ D_WYSIWYG_DELIMITED_STRING_MODE,
172
+ D_ALTERNATE_WYSIWYG_STRING_MODE,
173
+ D_TOKEN_STRING_MODE,
174
+ D_FLOAT_MODE,
175
+ D_INTEGER_MODE,
176
+ D_CHARACTER_MODE,
177
+ D_HASHBANG_MODE,
178
+ D_SPECIAL_TOKEN_SEQUENCE_MODE,
179
+ D_ATTRIBUTE_MODE
180
+ ]
181
+ };
182
+ }
183
+ //#endregion
184
+ export { d as default };
@@ -0,0 +1,226 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/dart.js
2
+ /** @type LanguageFn */
3
+ function dart(hljs) {
4
+ const SUBST = {
5
+ className: "subst",
6
+ variants: [{ begin: "\\$[A-Za-z0-9_]+" }]
7
+ };
8
+ const BRACED_SUBST = {
9
+ className: "subst",
10
+ variants: [{
11
+ begin: /\$\{/,
12
+ end: /\}/
13
+ }],
14
+ keywords: "true false null this is new super"
15
+ };
16
+ const NUMBER = {
17
+ className: "number",
18
+ relevance: 0,
19
+ variants: [{ match: /\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/ }, { match: /\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/ }]
20
+ };
21
+ const STRING = {
22
+ className: "string",
23
+ variants: [
24
+ {
25
+ begin: "r'''",
26
+ end: "'''"
27
+ },
28
+ {
29
+ begin: "r\"\"\"",
30
+ end: "\"\"\""
31
+ },
32
+ {
33
+ begin: "r'",
34
+ end: "'",
35
+ illegal: "\\n"
36
+ },
37
+ {
38
+ begin: "r\"",
39
+ end: "\"",
40
+ illegal: "\\n"
41
+ },
42
+ {
43
+ begin: "'''",
44
+ end: "'''",
45
+ contains: [
46
+ hljs.BACKSLASH_ESCAPE,
47
+ SUBST,
48
+ BRACED_SUBST
49
+ ]
50
+ },
51
+ {
52
+ begin: "\"\"\"",
53
+ end: "\"\"\"",
54
+ contains: [
55
+ hljs.BACKSLASH_ESCAPE,
56
+ SUBST,
57
+ BRACED_SUBST
58
+ ]
59
+ },
60
+ {
61
+ begin: "'",
62
+ end: "'",
63
+ illegal: "\\n",
64
+ contains: [
65
+ hljs.BACKSLASH_ESCAPE,
66
+ SUBST,
67
+ BRACED_SUBST
68
+ ]
69
+ },
70
+ {
71
+ begin: "\"",
72
+ end: "\"",
73
+ illegal: "\\n",
74
+ contains: [
75
+ hljs.BACKSLASH_ESCAPE,
76
+ SUBST,
77
+ BRACED_SUBST
78
+ ]
79
+ }
80
+ ]
81
+ };
82
+ BRACED_SUBST.contains = [NUMBER, STRING];
83
+ const BUILT_IN_TYPES = [
84
+ "Comparable",
85
+ "DateTime",
86
+ "Duration",
87
+ "Function",
88
+ "Iterable",
89
+ "Iterator",
90
+ "List",
91
+ "Map",
92
+ "Match",
93
+ "Object",
94
+ "Pattern",
95
+ "RegExp",
96
+ "Set",
97
+ "Stopwatch",
98
+ "String",
99
+ "StringBuffer",
100
+ "StringSink",
101
+ "Symbol",
102
+ "Type",
103
+ "Uri",
104
+ "bool",
105
+ "double",
106
+ "int",
107
+ "num",
108
+ "Element",
109
+ "ElementList"
110
+ ];
111
+ const NULLABLE_BUILT_IN_TYPES = BUILT_IN_TYPES.map((e) => `${e}?`);
112
+ return {
113
+ name: "Dart",
114
+ keywords: {
115
+ keyword: [
116
+ "abstract",
117
+ "as",
118
+ "assert",
119
+ "async",
120
+ "await",
121
+ "base",
122
+ "break",
123
+ "case",
124
+ "catch",
125
+ "class",
126
+ "const",
127
+ "continue",
128
+ "covariant",
129
+ "default",
130
+ "deferred",
131
+ "do",
132
+ "dynamic",
133
+ "else",
134
+ "enum",
135
+ "export",
136
+ "extends",
137
+ "extension",
138
+ "external",
139
+ "factory",
140
+ "false",
141
+ "final",
142
+ "finally",
143
+ "for",
144
+ "Function",
145
+ "get",
146
+ "hide",
147
+ "if",
148
+ "implements",
149
+ "import",
150
+ "in",
151
+ "interface",
152
+ "is",
153
+ "late",
154
+ "library",
155
+ "mixin",
156
+ "new",
157
+ "null",
158
+ "on",
159
+ "operator",
160
+ "part",
161
+ "required",
162
+ "rethrow",
163
+ "return",
164
+ "sealed",
165
+ "set",
166
+ "show",
167
+ "static",
168
+ "super",
169
+ "switch",
170
+ "sync",
171
+ "this",
172
+ "throw",
173
+ "true",
174
+ "try",
175
+ "typedef",
176
+ "var",
177
+ "void",
178
+ "when",
179
+ "while",
180
+ "with",
181
+ "yield"
182
+ ],
183
+ built_in: BUILT_IN_TYPES.concat(NULLABLE_BUILT_IN_TYPES).concat([
184
+ "Never",
185
+ "Null",
186
+ "dynamic",
187
+ "print",
188
+ "document",
189
+ "querySelector",
190
+ "querySelectorAll",
191
+ "window"
192
+ ]),
193
+ $pattern: /[A-Za-z][A-Za-z0-9_]*\??/
194
+ },
195
+ contains: [
196
+ STRING,
197
+ hljs.COMMENT(/\/\*\*(?!\/)/, /\*\//, {
198
+ subLanguage: "markdown",
199
+ relevance: 0
200
+ }),
201
+ hljs.COMMENT(/\/{3,} ?/, /$/, { contains: [{
202
+ subLanguage: "markdown",
203
+ begin: ".",
204
+ end: "$",
205
+ relevance: 0
206
+ }] }),
207
+ hljs.C_LINE_COMMENT_MODE,
208
+ hljs.C_BLOCK_COMMENT_MODE,
209
+ {
210
+ className: "class",
211
+ beginKeywords: "class interface",
212
+ end: /\{/,
213
+ excludeEnd: true,
214
+ contains: [{ beginKeywords: "extends implements" }, hljs.UNDERSCORE_TITLE_MODE]
215
+ },
216
+ NUMBER,
217
+ {
218
+ className: "meta",
219
+ begin: "@[A-Za-z]+"
220
+ },
221
+ { begin: "=>" }
222
+ ]
223
+ };
224
+ }
225
+ //#endregion
226
+ export { dart as default };
@@ -0,0 +1,227 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/delphi.js
2
+ /** @type LanguageFn */
3
+ function delphi(hljs) {
4
+ const KEYWORDS = [
5
+ "exports",
6
+ "register",
7
+ "file",
8
+ "shl",
9
+ "array",
10
+ "record",
11
+ "property",
12
+ "for",
13
+ "mod",
14
+ "while",
15
+ "set",
16
+ "ally",
17
+ "label",
18
+ "uses",
19
+ "raise",
20
+ "not",
21
+ "stored",
22
+ "class",
23
+ "safecall",
24
+ "var",
25
+ "interface",
26
+ "or",
27
+ "private",
28
+ "static",
29
+ "exit",
30
+ "index",
31
+ "inherited",
32
+ "to",
33
+ "else",
34
+ "stdcall",
35
+ "override",
36
+ "shr",
37
+ "asm",
38
+ "far",
39
+ "resourcestring",
40
+ "finalization",
41
+ "packed",
42
+ "virtual",
43
+ "out",
44
+ "and",
45
+ "protected",
46
+ "library",
47
+ "do",
48
+ "xorwrite",
49
+ "goto",
50
+ "near",
51
+ "function",
52
+ "end",
53
+ "div",
54
+ "overload",
55
+ "object",
56
+ "unit",
57
+ "begin",
58
+ "string",
59
+ "on",
60
+ "inline",
61
+ "repeat",
62
+ "until",
63
+ "destructor",
64
+ "write",
65
+ "message",
66
+ "program",
67
+ "with",
68
+ "read",
69
+ "initialization",
70
+ "except",
71
+ "default",
72
+ "nil",
73
+ "if",
74
+ "case",
75
+ "cdecl",
76
+ "in",
77
+ "downto",
78
+ "threadvar",
79
+ "of",
80
+ "try",
81
+ "pascal",
82
+ "const",
83
+ "external",
84
+ "constructor",
85
+ "type",
86
+ "public",
87
+ "then",
88
+ "implementation",
89
+ "finally",
90
+ "published",
91
+ "procedure",
92
+ "absolute",
93
+ "reintroduce",
94
+ "operator",
95
+ "as",
96
+ "is",
97
+ "abstract",
98
+ "alias",
99
+ "assembler",
100
+ "bitpacked",
101
+ "break",
102
+ "continue",
103
+ "cppdecl",
104
+ "cvar",
105
+ "enumerator",
106
+ "experimental",
107
+ "platform",
108
+ "deprecated",
109
+ "unimplemented",
110
+ "dynamic",
111
+ "export",
112
+ "far16",
113
+ "forward",
114
+ "generic",
115
+ "helper",
116
+ "implements",
117
+ "interrupt",
118
+ "iochecks",
119
+ "local",
120
+ "name",
121
+ "nodefault",
122
+ "noreturn",
123
+ "nostackframe",
124
+ "oldfpccall",
125
+ "otherwise",
126
+ "saveregisters",
127
+ "softfloat",
128
+ "specialize",
129
+ "strict",
130
+ "unaligned",
131
+ "varargs"
132
+ ];
133
+ const COMMENT_MODES = [
134
+ hljs.C_LINE_COMMENT_MODE,
135
+ hljs.COMMENT(/\{/, /\}/, { relevance: 0 }),
136
+ hljs.COMMENT(/\(\*/, /\*\)/, { relevance: 10 })
137
+ ];
138
+ const DIRECTIVE = {
139
+ className: "meta",
140
+ variants: [{
141
+ begin: /\{\$/,
142
+ end: /\}/
143
+ }, {
144
+ begin: /\(\*\$/,
145
+ end: /\*\)/
146
+ }]
147
+ };
148
+ const STRING = {
149
+ className: "string",
150
+ begin: /'/,
151
+ end: /'/,
152
+ contains: [{ begin: /''/ }]
153
+ };
154
+ const NUMBER = {
155
+ className: "number",
156
+ relevance: 0,
157
+ variants: [
158
+ { match: /\b\d[\d_]*(\.\d[\d_]*)?/ },
159
+ { match: /\$[\dA-Fa-f_]+/ },
160
+ {
161
+ match: /\$/,
162
+ relevance: 0
163
+ },
164
+ { match: /&[0-7][0-7_]*/ },
165
+ { match: /%[01_]+/ },
166
+ {
167
+ match: /%/,
168
+ relevance: 0
169
+ }
170
+ ]
171
+ };
172
+ const CHAR_STRING = {
173
+ className: "string",
174
+ variants: [
175
+ { match: /#\d[\d_]*/ },
176
+ { match: /#\$[\dA-Fa-f][\dA-Fa-f_]*/ },
177
+ { match: /#&[0-7][0-7_]*/ },
178
+ { match: /#%[01][01_]*/ }
179
+ ]
180
+ };
181
+ return {
182
+ name: "Delphi",
183
+ aliases: [
184
+ "dpr",
185
+ "dfm",
186
+ "pas",
187
+ "pascal"
188
+ ],
189
+ case_insensitive: true,
190
+ keywords: KEYWORDS,
191
+ illegal: /"|\$[G-Zg-z]|\/\*|<\/|\|/,
192
+ contains: [
193
+ STRING,
194
+ CHAR_STRING,
195
+ NUMBER,
196
+ {
197
+ begin: hljs.IDENT_RE + "\\s*=\\s*class\\s*\\(",
198
+ returnBegin: true,
199
+ contains: [hljs.TITLE_MODE]
200
+ },
201
+ {
202
+ className: "function",
203
+ beginKeywords: "function constructor destructor procedure",
204
+ end: /[:;]/,
205
+ keywords: "function constructor|10 destructor|10 procedure|10",
206
+ contains: [
207
+ hljs.TITLE_MODE,
208
+ {
209
+ className: "params",
210
+ begin: /\(/,
211
+ end: /\)/,
212
+ keywords: KEYWORDS,
213
+ contains: [
214
+ STRING,
215
+ CHAR_STRING,
216
+ DIRECTIVE
217
+ ].concat(COMMENT_MODES)
218
+ },
219
+ DIRECTIVE
220
+ ].concat(COMMENT_MODES)
221
+ },
222
+ DIRECTIVE
223
+ ].concat(COMMENT_MODES)
224
+ };
225
+ }
226
+ //#endregion
227
+ export { delphi as default };
@@ -0,0 +1,40 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/diff.js
2
+ /** @type LanguageFn */
3
+ function diff(hljs) {
4
+ const regex = hljs.regex;
5
+ return {
6
+ name: "Diff",
7
+ aliases: ["patch"],
8
+ contains: [
9
+ {
10
+ className: "meta",
11
+ relevance: 10,
12
+ match: regex.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/, /^@@ +-\d+ +\+\d+,\d+ +@@/, /^@@ +-\d+,\d+ +\+\d+ +@@/, /^@@ +-\d+ +\+\d+ +@@/, /^\*\*\* +\d+,\d+ +\*\*\*\*$/, /^--- +\d+,\d+ +----$/)
13
+ },
14
+ {
15
+ className: "comment",
16
+ variants: [{
17
+ begin: regex.either(/Index: /, /^index/, /={3,}/, /^-{3}/, /^\*{3} /, /^\+{3}/, /^diff --git/),
18
+ end: /$/
19
+ }, { match: /^\*{15}$/ }]
20
+ },
21
+ {
22
+ className: "addition",
23
+ begin: /^\+/,
24
+ end: /$/
25
+ },
26
+ {
27
+ className: "deletion",
28
+ begin: /^-/,
29
+ end: /$/
30
+ },
31
+ {
32
+ className: "addition",
33
+ begin: /^!/,
34
+ end: /$/
35
+ }
36
+ ]
37
+ };
38
+ }
39
+ //#endregion
40
+ export { diff as default };
@@ -0,0 +1,43 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/django.js
2
+ /** @type LanguageFn */
3
+ function django(hljs) {
4
+ const FILTER = {
5
+ begin: /\|[A-Za-z]+:?/,
6
+ keywords: { name: "truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone" },
7
+ contains: [hljs.QUOTE_STRING_MODE, hljs.APOS_STRING_MODE]
8
+ };
9
+ return {
10
+ name: "Django",
11
+ aliases: ["jinja"],
12
+ case_insensitive: true,
13
+ subLanguage: "xml",
14
+ contains: [
15
+ hljs.COMMENT(/\{%\s*comment\s*%\}/, /\{%\s*endcomment\s*%\}/),
16
+ hljs.COMMENT(/\{#/, /#\}/),
17
+ {
18
+ className: "template-tag",
19
+ begin: /\{%/,
20
+ end: /%\}/,
21
+ contains: [{
22
+ className: "name",
23
+ begin: /\w+/,
24
+ keywords: { name: "comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim" },
25
+ starts: {
26
+ endsWithParent: true,
27
+ keywords: "in by as",
28
+ contains: [FILTER],
29
+ relevance: 0
30
+ }
31
+ }]
32
+ },
33
+ {
34
+ className: "template-variable",
35
+ begin: /\{\{/,
36
+ end: /\}\}/,
37
+ contains: [FILTER]
38
+ }
39
+ ]
40
+ };
41
+ }
42
+ //#endregion
43
+ export { django as default };