@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,235 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/objectivec.js
2
+ function objectivec(hljs) {
3
+ const API_CLASS = {
4
+ className: "built_in",
5
+ begin: "\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"
6
+ };
7
+ const IDENTIFIER_RE = /[a-zA-Z@][a-zA-Z0-9_]*/;
8
+ const KEYWORDS = {
9
+ "variable.language": ["this", "super"],
10
+ $pattern: IDENTIFIER_RE,
11
+ keyword: [
12
+ "while",
13
+ "export",
14
+ "sizeof",
15
+ "typedef",
16
+ "const",
17
+ "struct",
18
+ "for",
19
+ "union",
20
+ "volatile",
21
+ "static",
22
+ "mutable",
23
+ "if",
24
+ "do",
25
+ "return",
26
+ "goto",
27
+ "enum",
28
+ "else",
29
+ "break",
30
+ "extern",
31
+ "asm",
32
+ "case",
33
+ "default",
34
+ "register",
35
+ "explicit",
36
+ "typename",
37
+ "switch",
38
+ "continue",
39
+ "inline",
40
+ "readonly",
41
+ "assign",
42
+ "readwrite",
43
+ "self",
44
+ "@synchronized",
45
+ "id",
46
+ "typeof",
47
+ "nonatomic",
48
+ "IBOutlet",
49
+ "IBAction",
50
+ "strong",
51
+ "weak",
52
+ "copy",
53
+ "in",
54
+ "out",
55
+ "inout",
56
+ "bycopy",
57
+ "byref",
58
+ "oneway",
59
+ "__strong",
60
+ "__weak",
61
+ "__block",
62
+ "__autoreleasing",
63
+ "@private",
64
+ "@protected",
65
+ "@public",
66
+ "@try",
67
+ "@property",
68
+ "@end",
69
+ "@throw",
70
+ "@catch",
71
+ "@finally",
72
+ "@autoreleasepool",
73
+ "@synthesize",
74
+ "@dynamic",
75
+ "@selector",
76
+ "@optional",
77
+ "@required",
78
+ "@encode",
79
+ "@package",
80
+ "@import",
81
+ "@defs",
82
+ "@compatibility_alias",
83
+ "__bridge",
84
+ "__bridge_transfer",
85
+ "__bridge_retained",
86
+ "__bridge_retain",
87
+ "__covariant",
88
+ "__contravariant",
89
+ "__kindof",
90
+ "_Nonnull",
91
+ "_Nullable",
92
+ "_Null_unspecified",
93
+ "__FUNCTION__",
94
+ "__PRETTY_FUNCTION__",
95
+ "__attribute__",
96
+ "getter",
97
+ "setter",
98
+ "retain",
99
+ "unsafe_unretained",
100
+ "nonnull",
101
+ "nullable",
102
+ "null_unspecified",
103
+ "null_resettable",
104
+ "class",
105
+ "instancetype",
106
+ "NS_DESIGNATED_INITIALIZER",
107
+ "NS_UNAVAILABLE",
108
+ "NS_REQUIRES_SUPER",
109
+ "NS_RETURNS_INNER_POINTER",
110
+ "NS_INLINE",
111
+ "NS_AVAILABLE",
112
+ "NS_DEPRECATED",
113
+ "NS_ENUM",
114
+ "NS_OPTIONS",
115
+ "NS_SWIFT_UNAVAILABLE",
116
+ "NS_ASSUME_NONNULL_BEGIN",
117
+ "NS_ASSUME_NONNULL_END",
118
+ "NS_REFINED_FOR_SWIFT",
119
+ "NS_SWIFT_NAME",
120
+ "NS_SWIFT_NOTHROW",
121
+ "NS_DURING",
122
+ "NS_HANDLER",
123
+ "NS_ENDHANDLER",
124
+ "NS_VALUERETURN",
125
+ "NS_VOIDRETURN"
126
+ ],
127
+ literal: [
128
+ "false",
129
+ "true",
130
+ "FALSE",
131
+ "TRUE",
132
+ "nil",
133
+ "YES",
134
+ "NO",
135
+ "NULL"
136
+ ],
137
+ built_in: [
138
+ "dispatch_once_t",
139
+ "dispatch_queue_t",
140
+ "dispatch_sync",
141
+ "dispatch_async",
142
+ "dispatch_once"
143
+ ],
144
+ type: [
145
+ "int",
146
+ "float",
147
+ "char",
148
+ "unsigned",
149
+ "signed",
150
+ "short",
151
+ "long",
152
+ "double",
153
+ "wchar_t",
154
+ "unichar",
155
+ "void",
156
+ "bool",
157
+ "BOOL",
158
+ "id|0",
159
+ "_Bool"
160
+ ]
161
+ };
162
+ const CLASS_KEYWORDS = {
163
+ $pattern: IDENTIFIER_RE,
164
+ keyword: [
165
+ "@interface",
166
+ "@class",
167
+ "@protocol",
168
+ "@implementation"
169
+ ]
170
+ };
171
+ return {
172
+ name: "Objective-C",
173
+ aliases: [
174
+ "mm",
175
+ "objc",
176
+ "obj-c",
177
+ "obj-c++",
178
+ "objective-c++"
179
+ ],
180
+ keywords: KEYWORDS,
181
+ illegal: "</",
182
+ contains: [
183
+ API_CLASS,
184
+ hljs.C_LINE_COMMENT_MODE,
185
+ hljs.C_BLOCK_COMMENT_MODE,
186
+ hljs.C_NUMBER_MODE,
187
+ hljs.QUOTE_STRING_MODE,
188
+ hljs.APOS_STRING_MODE,
189
+ {
190
+ className: "string",
191
+ variants: [{
192
+ begin: "@\"",
193
+ end: "\"",
194
+ illegal: "\\n",
195
+ contains: [hljs.BACKSLASH_ESCAPE]
196
+ }]
197
+ },
198
+ {
199
+ className: "meta",
200
+ begin: /#\s*[a-z]+\b/,
201
+ end: /$/,
202
+ keywords: { keyword: "if else elif endif define undef warning error line pragma ifdef ifndef include" },
203
+ contains: [
204
+ {
205
+ begin: /\\\n/,
206
+ relevance: 0
207
+ },
208
+ hljs.inherit(hljs.QUOTE_STRING_MODE, { className: "string" }),
209
+ {
210
+ className: "string",
211
+ begin: /<.*?>/,
212
+ end: /$/,
213
+ illegal: "\\n"
214
+ },
215
+ hljs.C_LINE_COMMENT_MODE,
216
+ hljs.C_BLOCK_COMMENT_MODE
217
+ ]
218
+ },
219
+ {
220
+ className: "class",
221
+ begin: "(" + CLASS_KEYWORDS.keyword.join("|") + ")\\b",
222
+ end: /(\{|$)/,
223
+ excludeEnd: true,
224
+ keywords: CLASS_KEYWORDS,
225
+ contains: [hljs.UNDERSCORE_TITLE_MODE]
226
+ },
227
+ {
228
+ begin: "\\." + hljs.UNDERSCORE_IDENT_RE,
229
+ relevance: 0
230
+ }
231
+ ]
232
+ };
233
+ }
234
+ //#endregion
235
+ export { objectivec as default };
@@ -0,0 +1,52 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/ocaml.js
2
+ function ocaml(hljs) {
3
+ return {
4
+ name: "OCaml",
5
+ aliases: ["ml"],
6
+ keywords: {
7
+ $pattern: "[a-z_]\\w*!?",
8
+ keyword: "and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",
9
+ built_in: "array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",
10
+ literal: "true false"
11
+ },
12
+ illegal: /\/\/|>>/,
13
+ contains: [
14
+ {
15
+ className: "literal",
16
+ begin: "\\[(\\|\\|)?\\]|\\(\\)",
17
+ relevance: 0
18
+ },
19
+ hljs.COMMENT("\\(\\*", "\\*\\)", { contains: ["self"] }),
20
+ {
21
+ className: "symbol",
22
+ begin: "'[A-Za-z_](?!')[\\w']*"
23
+ },
24
+ {
25
+ className: "type",
26
+ begin: "`[A-Z][\\w']*"
27
+ },
28
+ {
29
+ className: "type",
30
+ begin: "\\b[A-Z][\\w']*",
31
+ relevance: 0
32
+ },
33
+ {
34
+ begin: "[a-z_]\\w*'[\\w']*",
35
+ relevance: 0
36
+ },
37
+ hljs.inherit(hljs.APOS_STRING_MODE, {
38
+ className: "string",
39
+ relevance: 0
40
+ }),
41
+ hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }),
42
+ {
43
+ className: "number",
44
+ begin: "\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",
45
+ relevance: 0
46
+ },
47
+ { begin: /->/ }
48
+ ]
49
+ };
50
+ }
51
+ //#endregion
52
+ export { ocaml as default };
@@ -0,0 +1,66 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/openscad.js
2
+ function openscad(hljs) {
3
+ const SPECIAL_VARS = {
4
+ className: "keyword",
5
+ begin: "\\$(f[asn]|t|vp[rtd]|children)"
6
+ };
7
+ const LITERALS = {
8
+ className: "literal",
9
+ begin: "false|true|PI|undef"
10
+ };
11
+ const NUMBERS = {
12
+ className: "number",
13
+ begin: "\\b\\d+(\\.\\d+)?(e-?\\d+)?",
14
+ relevance: 0
15
+ };
16
+ const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null });
17
+ const PREPRO = {
18
+ className: "meta",
19
+ keywords: { keyword: "include use" },
20
+ begin: "include|use <",
21
+ end: ">"
22
+ };
23
+ const PARAMS = {
24
+ className: "params",
25
+ begin: "\\(",
26
+ end: "\\)",
27
+ contains: [
28
+ "self",
29
+ NUMBERS,
30
+ STRING,
31
+ SPECIAL_VARS,
32
+ LITERALS
33
+ ]
34
+ };
35
+ const MODIFIERS = {
36
+ begin: "[*!#%]",
37
+ relevance: 0
38
+ };
39
+ const FUNCTIONS = {
40
+ className: "function",
41
+ beginKeywords: "module function",
42
+ end: /=|\{/,
43
+ contains: [PARAMS, hljs.UNDERSCORE_TITLE_MODE]
44
+ };
45
+ return {
46
+ name: "OpenSCAD",
47
+ aliases: ["scad"],
48
+ keywords: {
49
+ keyword: "function module include use for intersection_for if else \\%",
50
+ literal: "false true PI undef",
51
+ built_in: "circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"
52
+ },
53
+ contains: [
54
+ hljs.C_LINE_COMMENT_MODE,
55
+ hljs.C_BLOCK_COMMENT_MODE,
56
+ NUMBERS,
57
+ PREPRO,
58
+ STRING,
59
+ SPECIAL_VARS,
60
+ MODIFIERS,
61
+ FUNCTIONS
62
+ ]
63
+ };
64
+ }
65
+ //#endregion
66
+ export { openscad as default };
@@ -0,0 +1,58 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/oxygene.js
2
+ function oxygene(hljs) {
3
+ const OXYGENE_KEYWORDS = {
4
+ $pattern: /\.?\w+/,
5
+ keyword: "abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"
6
+ };
7
+ const CURLY_COMMENT = hljs.COMMENT(/\{/, /\}/, { relevance: 0 });
8
+ const PAREN_COMMENT = hljs.COMMENT("\\(\\*", "\\*\\)", { relevance: 10 });
9
+ const STRING = {
10
+ className: "string",
11
+ begin: "'",
12
+ end: "'",
13
+ contains: [{ begin: "''" }]
14
+ };
15
+ const CHAR_STRING = {
16
+ className: "string",
17
+ begin: "(#\\d+)+"
18
+ };
19
+ const FUNCTION = {
20
+ beginKeywords: "function constructor destructor procedure method",
21
+ end: "[:;]",
22
+ keywords: "function constructor|10 destructor|10 procedure|10 method|10",
23
+ contains: [
24
+ hljs.inherit(hljs.TITLE_MODE, { scope: "title.function" }),
25
+ {
26
+ className: "params",
27
+ begin: "\\(",
28
+ end: "\\)",
29
+ keywords: OXYGENE_KEYWORDS,
30
+ contains: [STRING, CHAR_STRING]
31
+ },
32
+ CURLY_COMMENT,
33
+ PAREN_COMMENT
34
+ ]
35
+ };
36
+ return {
37
+ name: "Oxygene",
38
+ case_insensitive: true,
39
+ keywords: OXYGENE_KEYWORDS,
40
+ illegal: "(\"|\\$[G-Zg-z]|\\/\\*|</|=>|->)",
41
+ contains: [
42
+ CURLY_COMMENT,
43
+ PAREN_COMMENT,
44
+ hljs.C_LINE_COMMENT_MODE,
45
+ STRING,
46
+ CHAR_STRING,
47
+ hljs.NUMBER_MODE,
48
+ FUNCTION,
49
+ {
50
+ scope: "punctuation",
51
+ match: /;/,
52
+ relevance: 0
53
+ }
54
+ ]
55
+ };
56
+ }
57
+ //#endregion
58
+ export { oxygene as default };
@@ -0,0 +1,40 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/parser3.js
2
+ function parser3(hljs) {
3
+ const CURLY_SUBCOMMENT = hljs.COMMENT(/\{/, /\}/, { contains: ["self"] });
4
+ return {
5
+ name: "Parser3",
6
+ subLanguage: "xml",
7
+ relevance: 0,
8
+ contains: [
9
+ hljs.COMMENT("^#", "$"),
10
+ hljs.COMMENT(/\^rem\{/, /\}/, {
11
+ relevance: 10,
12
+ contains: [CURLY_SUBCOMMENT]
13
+ }),
14
+ {
15
+ className: "meta",
16
+ begin: "^@(?:BASE|USE|CLASS|OPTIONS)$",
17
+ relevance: 10
18
+ },
19
+ {
20
+ className: "title",
21
+ begin: "@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"
22
+ },
23
+ {
24
+ className: "variable",
25
+ begin: /\$\{?[\w\-.:]+\}?/
26
+ },
27
+ {
28
+ className: "keyword",
29
+ begin: /\^[\w\-.:]+/
30
+ },
31
+ {
32
+ className: "number",
33
+ begin: "\\^#[0-9a-fA-F]+"
34
+ },
35
+ hljs.C_NUMBER_MODE
36
+ ]
37
+ };
38
+ }
39
+ //#endregion
40
+ export { parser3 as default };