@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,134 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/qml.js
2
+ function qml(hljs) {
3
+ const regex = hljs.regex;
4
+ const KEYWORDS = {
5
+ keyword: "in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",
6
+ literal: "true false null undefined NaN Infinity",
7
+ built_in: "eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"
8
+ };
9
+ const QML_IDENT_RE = "[a-zA-Z_][a-zA-Z0-9\\._]*";
10
+ const PROPERTY = {
11
+ className: "keyword",
12
+ begin: "\\bproperty\\b",
13
+ starts: {
14
+ className: "string",
15
+ end: "(:|=|;|,|//|/\\*|$)",
16
+ returnEnd: true
17
+ }
18
+ };
19
+ const SIGNAL = {
20
+ className: "keyword",
21
+ begin: "\\bsignal\\b",
22
+ starts: {
23
+ className: "string",
24
+ end: "(\\(|:|=|;|,|//|/\\*|$)",
25
+ returnEnd: true
26
+ }
27
+ };
28
+ const ID_ID = {
29
+ className: "attribute",
30
+ begin: "\\bid\\s*:",
31
+ starts: {
32
+ className: "string",
33
+ end: QML_IDENT_RE,
34
+ returnEnd: false
35
+ }
36
+ };
37
+ const QML_ATTRIBUTE = {
38
+ begin: QML_IDENT_RE + "\\s*:",
39
+ returnBegin: true,
40
+ contains: [{
41
+ className: "attribute",
42
+ begin: QML_IDENT_RE,
43
+ end: "\\s*:",
44
+ excludeEnd: true,
45
+ relevance: 0
46
+ }],
47
+ relevance: 0
48
+ };
49
+ const QML_OBJECT = {
50
+ begin: regex.concat(QML_IDENT_RE, /\s*\{/),
51
+ end: /\{/,
52
+ returnBegin: true,
53
+ relevance: 0,
54
+ contains: [hljs.inherit(hljs.TITLE_MODE, { begin: QML_IDENT_RE })]
55
+ };
56
+ return {
57
+ name: "QML",
58
+ aliases: ["qt"],
59
+ case_insensitive: false,
60
+ keywords: KEYWORDS,
61
+ contains: [
62
+ {
63
+ className: "meta",
64
+ begin: /^\s*['"]use (strict|asm)['"]/
65
+ },
66
+ hljs.APOS_STRING_MODE,
67
+ hljs.QUOTE_STRING_MODE,
68
+ {
69
+ className: "string",
70
+ begin: "`",
71
+ end: "`",
72
+ contains: [hljs.BACKSLASH_ESCAPE, {
73
+ className: "subst",
74
+ begin: "\\$\\{",
75
+ end: "\\}"
76
+ }]
77
+ },
78
+ hljs.C_LINE_COMMENT_MODE,
79
+ hljs.C_BLOCK_COMMENT_MODE,
80
+ {
81
+ className: "number",
82
+ variants: [
83
+ { begin: "\\b(0[bB][01]+)" },
84
+ { begin: "\\b(0[oO][0-7]+)" },
85
+ { begin: hljs.C_NUMBER_RE }
86
+ ],
87
+ relevance: 0
88
+ },
89
+ {
90
+ begin: "(" + hljs.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
91
+ keywords: "return throw case",
92
+ contains: [
93
+ hljs.C_LINE_COMMENT_MODE,
94
+ hljs.C_BLOCK_COMMENT_MODE,
95
+ hljs.REGEXP_MODE,
96
+ {
97
+ begin: /</,
98
+ end: />\s*[);\]]/,
99
+ relevance: 0,
100
+ subLanguage: "xml"
101
+ }
102
+ ],
103
+ relevance: 0
104
+ },
105
+ SIGNAL,
106
+ PROPERTY,
107
+ {
108
+ className: "function",
109
+ beginKeywords: "function",
110
+ end: /\{/,
111
+ excludeEnd: true,
112
+ contains: [hljs.inherit(hljs.TITLE_MODE, { begin: /[A-Za-z$_][0-9A-Za-z$_]*/ }), {
113
+ className: "params",
114
+ begin: /\(/,
115
+ end: /\)/,
116
+ excludeBegin: true,
117
+ excludeEnd: true,
118
+ contains: [hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE]
119
+ }],
120
+ illegal: /\[|%/
121
+ },
122
+ {
123
+ begin: "\\." + hljs.IDENT_RE,
124
+ relevance: 0
125
+ },
126
+ ID_ID,
127
+ QML_ATTRIBUTE,
128
+ QML_OBJECT
129
+ ],
130
+ illegal: /#/
131
+ };
132
+ }
133
+ //#endregion
134
+ export { qml as default };
@@ -0,0 +1,145 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/r.js
2
+ /** @type LanguageFn */
3
+ function r(hljs) {
4
+ const regex = hljs.regex;
5
+ const IDENT_RE = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/;
6
+ const NUMBER_TYPES_RE = regex.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/, /0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/, /(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/);
7
+ const OPERATORS_RE = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/;
8
+ const PUNCTUATION_RE = regex.either(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
9
+ return {
10
+ name: "R",
11
+ keywords: {
12
+ $pattern: IDENT_RE,
13
+ keyword: "function if in break next repeat else for while",
14
+ literal: "NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",
15
+ built_in: "LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"
16
+ },
17
+ contains: [
18
+ hljs.COMMENT(/#'/, /$/, { contains: [
19
+ {
20
+ scope: "doctag",
21
+ match: /@examples/,
22
+ starts: {
23
+ end: regex.lookahead(regex.either(/\n^#'\s*(?=@[a-zA-Z]+)/, /\n^(?!#')/)),
24
+ endsParent: true
25
+ }
26
+ },
27
+ {
28
+ scope: "doctag",
29
+ begin: "@param",
30
+ end: /$/,
31
+ contains: [{
32
+ scope: "variable",
33
+ variants: [{ match: IDENT_RE }, { match: /`(?:\\.|[^`\\])+`/ }],
34
+ endsParent: true
35
+ }]
36
+ },
37
+ {
38
+ scope: "doctag",
39
+ match: /@[a-zA-Z]+/
40
+ },
41
+ {
42
+ scope: "keyword",
43
+ match: /\\[a-zA-Z]+/
44
+ }
45
+ ] }),
46
+ hljs.HASH_COMMENT_MODE,
47
+ {
48
+ scope: "string",
49
+ contains: [hljs.BACKSLASH_ESCAPE],
50
+ variants: [
51
+ hljs.END_SAME_AS_BEGIN({
52
+ begin: /[rR]"(-*)\(/,
53
+ end: /\)(-*)"/
54
+ }),
55
+ hljs.END_SAME_AS_BEGIN({
56
+ begin: /[rR]"(-*)\{/,
57
+ end: /\}(-*)"/
58
+ }),
59
+ hljs.END_SAME_AS_BEGIN({
60
+ begin: /[rR]"(-*)\[/,
61
+ end: /\](-*)"/
62
+ }),
63
+ hljs.END_SAME_AS_BEGIN({
64
+ begin: /[rR]'(-*)\(/,
65
+ end: /\)(-*)'/
66
+ }),
67
+ hljs.END_SAME_AS_BEGIN({
68
+ begin: /[rR]'(-*)\{/,
69
+ end: /\}(-*)'/
70
+ }),
71
+ hljs.END_SAME_AS_BEGIN({
72
+ begin: /[rR]'(-*)\[/,
73
+ end: /\](-*)'/
74
+ }),
75
+ {
76
+ begin: "\"",
77
+ end: "\"",
78
+ relevance: 0
79
+ },
80
+ {
81
+ begin: "'",
82
+ end: "'",
83
+ relevance: 0
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ relevance: 0,
89
+ variants: [
90
+ {
91
+ scope: {
92
+ 1: "operator",
93
+ 2: "number"
94
+ },
95
+ match: [OPERATORS_RE, NUMBER_TYPES_RE]
96
+ },
97
+ {
98
+ scope: {
99
+ 1: "operator",
100
+ 2: "number"
101
+ },
102
+ match: [/%[^%]*%/, NUMBER_TYPES_RE]
103
+ },
104
+ {
105
+ scope: {
106
+ 1: "punctuation",
107
+ 2: "number"
108
+ },
109
+ match: [PUNCTUATION_RE, NUMBER_TYPES_RE]
110
+ },
111
+ {
112
+ scope: { 2: "number" },
113
+ match: [/[^a-zA-Z0-9._]|^/, NUMBER_TYPES_RE]
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ scope: { 3: "operator" },
119
+ match: [
120
+ IDENT_RE,
121
+ /\s+/,
122
+ /<-/,
123
+ /\s+/
124
+ ]
125
+ },
126
+ {
127
+ scope: "operator",
128
+ relevance: 0,
129
+ variants: [{ match: OPERATORS_RE }, { match: /%[^%]*%/ }]
130
+ },
131
+ {
132
+ scope: "punctuation",
133
+ relevance: 0,
134
+ match: PUNCTUATION_RE
135
+ },
136
+ {
137
+ begin: "`",
138
+ end: "`",
139
+ contains: [{ begin: /\\./ }]
140
+ }
141
+ ]
142
+ };
143
+ }
144
+ //#endregion
145
+ export { r as default };
@@ -0,0 +1,134 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/reasonml.js
2
+ function reasonml(hljs) {
3
+ return {
4
+ name: "ReasonML",
5
+ aliases: ["re"],
6
+ keywords: {
7
+ $pattern: /[a-z_]\w*!?/,
8
+ keyword: [
9
+ "and",
10
+ "as",
11
+ "asr",
12
+ "assert",
13
+ "begin",
14
+ "class",
15
+ "constraint",
16
+ "do",
17
+ "done",
18
+ "downto",
19
+ "else",
20
+ "end",
21
+ "esfun",
22
+ "exception",
23
+ "external",
24
+ "for",
25
+ "fun",
26
+ "function",
27
+ "functor",
28
+ "if",
29
+ "in",
30
+ "include",
31
+ "inherit",
32
+ "initializer",
33
+ "land",
34
+ "lazy",
35
+ "let",
36
+ "lor",
37
+ "lsl",
38
+ "lsr",
39
+ "lxor",
40
+ "mod",
41
+ "module",
42
+ "mutable",
43
+ "new",
44
+ "nonrec",
45
+ "object",
46
+ "of",
47
+ "open",
48
+ "or",
49
+ "pri",
50
+ "pub",
51
+ "rec",
52
+ "sig",
53
+ "struct",
54
+ "switch",
55
+ "then",
56
+ "to",
57
+ "try",
58
+ "type",
59
+ "val",
60
+ "virtual",
61
+ "when",
62
+ "while",
63
+ "with"
64
+ ],
65
+ built_in: [
66
+ "array",
67
+ "bool",
68
+ "bytes",
69
+ "char",
70
+ "exn|5",
71
+ "float",
72
+ "int",
73
+ "int32",
74
+ "int64",
75
+ "list",
76
+ "lazy_t|5",
77
+ "nativeint|5",
78
+ "ref",
79
+ "string",
80
+ "unit"
81
+ ],
82
+ literal: ["true", "false"]
83
+ },
84
+ illegal: /(:-|:=|\$\{|\+=)/,
85
+ contains: [
86
+ {
87
+ scope: "literal",
88
+ match: /\[(\|\|)?\]|\(\)/,
89
+ relevance: 0
90
+ },
91
+ hljs.C_LINE_COMMENT_MODE,
92
+ hljs.COMMENT(/\/\*/, /\*\//, { illegal: /^(#,\/\/)/ }),
93
+ {
94
+ scope: "symbol",
95
+ match: /\'[A-Za-z_](?!\')[\w\']*/
96
+ },
97
+ {
98
+ scope: "type",
99
+ match: /`[A-Z][\w\']*/
100
+ },
101
+ {
102
+ scope: "type",
103
+ match: /\b[A-Z][\w\']*/,
104
+ relevance: 0
105
+ },
106
+ {
107
+ match: /[a-z_]\w*\'[\w\']*/,
108
+ relevance: 0
109
+ },
110
+ {
111
+ scope: "operator",
112
+ match: /\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,
113
+ relevance: 0
114
+ },
115
+ hljs.inherit(hljs.APOS_STRING_MODE, {
116
+ scope: "string",
117
+ relevance: 0
118
+ }),
119
+ hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }),
120
+ {
121
+ scope: "number",
122
+ variants: [
123
+ { match: /\b0[xX][a-fA-F0-9_]+[Lln]?/ },
124
+ { match: /\b0[oO][0-7_]+[Lln]?/ },
125
+ { match: /\b0[bB][01_]+[Lln]?/ },
126
+ { match: /\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/ }
127
+ ],
128
+ relevance: 0
129
+ }
130
+ ]
131
+ };
132
+ }
133
+ //#endregion
134
+ export { reasonml as default };
@@ -0,0 +1,16 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/rib.js
2
+ function rib(hljs) {
3
+ return {
4
+ name: "RenderMan RIB",
5
+ keywords: "ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",
6
+ illegal: "</",
7
+ contains: [
8
+ hljs.HASH_COMMENT_MODE,
9
+ hljs.C_NUMBER_MODE,
10
+ hljs.APOS_STRING_MODE,
11
+ hljs.QUOTE_STRING_MODE
12
+ ]
13
+ };
14
+ }
15
+ //#endregion
16
+ export { rib as default };
@@ -0,0 +1,54 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/roboconf.js
2
+ function roboconf(hljs) {
3
+ const IDENTIFIER = "[a-zA-Z-_][^\\n{]+\\{";
4
+ const PROPERTY = {
5
+ className: "attribute",
6
+ begin: /[a-zA-Z-_]+/,
7
+ end: /\s*:/,
8
+ excludeEnd: true,
9
+ starts: {
10
+ end: ";",
11
+ relevance: 0,
12
+ contains: [{
13
+ className: "variable",
14
+ begin: /\.[a-zA-Z-_]+/
15
+ }, {
16
+ className: "keyword",
17
+ begin: /\(optional\)/
18
+ }]
19
+ }
20
+ };
21
+ return {
22
+ name: "Roboconf",
23
+ aliases: ["graph", "instances"],
24
+ case_insensitive: true,
25
+ keywords: "import",
26
+ contains: [
27
+ {
28
+ begin: "^facet " + IDENTIFIER,
29
+ end: /\}/,
30
+ keywords: "facet",
31
+ contains: [PROPERTY, hljs.HASH_COMMENT_MODE]
32
+ },
33
+ {
34
+ begin: "^\\s*instance of " + IDENTIFIER,
35
+ end: /\}/,
36
+ keywords: "name count channels instance-data instance-state instance of",
37
+ illegal: /\S/,
38
+ contains: [
39
+ "self",
40
+ PROPERTY,
41
+ hljs.HASH_COMMENT_MODE
42
+ ]
43
+ },
44
+ {
45
+ begin: "^" + IDENTIFIER,
46
+ end: /\}/,
47
+ contains: [PROPERTY, hljs.HASH_COMMENT_MODE]
48
+ },
49
+ hljs.HASH_COMMENT_MODE
50
+ ]
51
+ };
52
+ }
53
+ //#endregion
54
+ export { roboconf as default };
@@ -0,0 +1,109 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/routeros.js
2
+ function routeros(hljs) {
3
+ const STATEMENTS = "foreach do while for if from to step else on-error and or not in";
4
+ const GLOBAL_COMMANDS = "global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime";
5
+ const COMMON_COMMANDS = "add remove enable disable set get print export edit find run debug error info warning";
6
+ const LITERALS = "true false yes no nothing nil null";
7
+ const OBJECTS = "traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw";
8
+ const VAR = {
9
+ className: "variable",
10
+ variants: [{ begin: /\$[\w\d#@][\w\d_]*/ }, { begin: /\$\{(.*?)\}/ }]
11
+ };
12
+ const QUOTE_STRING = {
13
+ className: "string",
14
+ begin: /"/,
15
+ end: /"/,
16
+ contains: [
17
+ hljs.BACKSLASH_ESCAPE,
18
+ VAR,
19
+ {
20
+ className: "variable",
21
+ begin: /\$\(/,
22
+ end: /\)/,
23
+ contains: [hljs.BACKSLASH_ESCAPE]
24
+ }
25
+ ]
26
+ };
27
+ const APOS_STRING = {
28
+ className: "string",
29
+ begin: /'/,
30
+ end: /'/
31
+ };
32
+ return {
33
+ name: "MikroTik RouterOS script",
34
+ aliases: ["mikrotik"],
35
+ case_insensitive: true,
36
+ keywords: {
37
+ $pattern: /:?[\w-]+/,
38
+ literal: LITERALS,
39
+ keyword: STATEMENTS + " :" + STATEMENTS.split(" ").join(" :") + " :" + GLOBAL_COMMANDS.split(" ").join(" :")
40
+ },
41
+ contains: [
42
+ {
43
+ variants: [
44
+ {
45
+ begin: /\/\*/,
46
+ end: /\*\//
47
+ },
48
+ {
49
+ begin: /\/\//,
50
+ end: /$/
51
+ },
52
+ {
53
+ begin: /<\//,
54
+ end: />/
55
+ }
56
+ ],
57
+ illegal: /./
58
+ },
59
+ hljs.COMMENT("^#", "$"),
60
+ QUOTE_STRING,
61
+ APOS_STRING,
62
+ VAR,
63
+ {
64
+ begin: /[\w-]+=([^\s{}[\]()>]+)/,
65
+ relevance: 0,
66
+ returnBegin: true,
67
+ contains: [{
68
+ className: "attribute",
69
+ begin: /[^=]+/
70
+ }, {
71
+ begin: /=/,
72
+ endsWithParent: true,
73
+ relevance: 0,
74
+ contains: [
75
+ QUOTE_STRING,
76
+ APOS_STRING,
77
+ VAR,
78
+ {
79
+ className: "literal",
80
+ begin: "\\b(" + LITERALS.split(" ").join("|") + ")\\b"
81
+ },
82
+ { begin: /("[^"]*"|[^\s{}[\]]+)/ }
83
+ ]
84
+ }]
85
+ },
86
+ {
87
+ className: "number",
88
+ begin: /\*[0-9a-fA-F]+/
89
+ },
90
+ {
91
+ begin: "\\b(" + COMMON_COMMANDS.split(" ").join("|") + ")([\\s[(\\]|])",
92
+ returnBegin: true,
93
+ contains: [{
94
+ className: "built_in",
95
+ begin: /\w+/
96
+ }]
97
+ },
98
+ {
99
+ className: "built_in",
100
+ variants: [{ begin: "(\\.\\./|/|\\s)((" + OBJECTS.split(" ").join("|") + ");?\\s)+" }, {
101
+ begin: /\.\./,
102
+ relevance: 0
103
+ }]
104
+ }
105
+ ]
106
+ };
107
+ }
108
+ //#endregion
109
+ export { routeros as default };