@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,77 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/cos.js
2
+ /** @type LanguageFn */
3
+ function cos(hljs) {
4
+ return {
5
+ name: "Caché Object Script",
6
+ case_insensitive: true,
7
+ aliases: ["cls"],
8
+ keywords: "property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",
9
+ contains: [
10
+ {
11
+ className: "number",
12
+ begin: "\\b(\\d+(\\.\\d*)?|\\.\\d+)",
13
+ relevance: 0
14
+ },
15
+ {
16
+ className: "string",
17
+ variants: [{
18
+ begin: "\"",
19
+ end: "\"",
20
+ contains: [{
21
+ begin: "\"\"",
22
+ relevance: 0
23
+ }]
24
+ }]
25
+ },
26
+ hljs.C_LINE_COMMENT_MODE,
27
+ hljs.C_BLOCK_COMMENT_MODE,
28
+ {
29
+ className: "comment",
30
+ begin: /;/,
31
+ end: "$",
32
+ relevance: 0
33
+ },
34
+ {
35
+ className: "built_in",
36
+ begin: /(?:\$\$?|\.\.)\^?[a-zA-Z]+/
37
+ },
38
+ {
39
+ className: "built_in",
40
+ begin: /\$\$\$[a-zA-Z]+/
41
+ },
42
+ {
43
+ className: "built_in",
44
+ begin: /%[a-z]+(?:\.[a-z]+)*/
45
+ },
46
+ {
47
+ className: "symbol",
48
+ begin: /\^%?[a-zA-Z][\w]*/
49
+ },
50
+ {
51
+ className: "keyword",
52
+ begin: /##class|##super|#define|#dim/
53
+ },
54
+ {
55
+ begin: /&sql\(/,
56
+ end: /\)/,
57
+ excludeBegin: true,
58
+ excludeEnd: true,
59
+ subLanguage: "sql"
60
+ },
61
+ {
62
+ begin: /&(js|jscript|javascript)</,
63
+ end: />/,
64
+ excludeBegin: true,
65
+ excludeEnd: true,
66
+ subLanguage: "javascript"
67
+ },
68
+ {
69
+ begin: /&html<\s*</,
70
+ end: />\s*>/,
71
+ subLanguage: "xml"
72
+ }
73
+ ]
74
+ };
75
+ }
76
+ //#endregion
77
+ export { cos as default };
@@ -0,0 +1,492 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/cpp.js
2
+ /** @type LanguageFn */
3
+ function cpp(hljs) {
4
+ const regex = hljs.regex;
5
+ const C_LINE_COMMENT_MODE = hljs.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] });
6
+ const DECLTYPE_AUTO_RE = "decltype\\(auto\\)";
7
+ const NAMESPACE_RE = "[a-zA-Z_]\\w*::";
8
+ const FUNCTION_TYPE_RE = "(?!struct)(decltype\\(auto\\)|" + regex.optional(NAMESPACE_RE) + "[a-zA-Z_]\\w*" + regex.optional("<[^<>]+>") + ")";
9
+ const CPP_PRIMITIVE_TYPES = {
10
+ className: "type",
11
+ begin: "\\b[a-z\\d_]*_t\\b"
12
+ };
13
+ const STRINGS = {
14
+ className: "string",
15
+ variants: [
16
+ {
17
+ begin: "(u8?|U|L)?\"",
18
+ end: "\"",
19
+ illegal: "\\n",
20
+ contains: [hljs.BACKSLASH_ESCAPE]
21
+ },
22
+ {
23
+ begin: "(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
24
+ end: "'",
25
+ illegal: "."
26
+ },
27
+ hljs.END_SAME_AS_BEGIN({
28
+ begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,
29
+ end: /\)([^()\\ ]{0,16})"/
30
+ })
31
+ ]
32
+ };
33
+ const NUMBERS = {
34
+ className: "number",
35
+ variants: [{ begin: "[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)" }, { begin: "[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)" }],
36
+ relevance: 0
37
+ };
38
+ const PREPROCESSOR = {
39
+ className: "meta",
40
+ begin: /#\s*[a-z]+\b/,
41
+ end: /$/,
42
+ keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" },
43
+ contains: [
44
+ {
45
+ begin: /\\\n/,
46
+ relevance: 0
47
+ },
48
+ hljs.inherit(STRINGS, { className: "string" }),
49
+ {
50
+ className: "string",
51
+ begin: /<.*?>/
52
+ },
53
+ C_LINE_COMMENT_MODE,
54
+ hljs.C_BLOCK_COMMENT_MODE
55
+ ]
56
+ };
57
+ const TITLE_MODE = {
58
+ className: "title",
59
+ begin: regex.optional(NAMESPACE_RE) + hljs.IDENT_RE,
60
+ relevance: 0
61
+ };
62
+ const FUNCTION_TITLE = regex.optional(NAMESPACE_RE) + hljs.IDENT_RE + "\\s*\\(";
63
+ const RESERVED_KEYWORDS = [
64
+ "alignas",
65
+ "alignof",
66
+ "and",
67
+ "and_eq",
68
+ "asm",
69
+ "atomic_cancel",
70
+ "atomic_commit",
71
+ "atomic_noexcept",
72
+ "auto",
73
+ "bitand",
74
+ "bitor",
75
+ "break",
76
+ "case",
77
+ "catch",
78
+ "class",
79
+ "co_await",
80
+ "co_return",
81
+ "co_yield",
82
+ "compl",
83
+ "concept",
84
+ "const_cast|10",
85
+ "consteval",
86
+ "constexpr",
87
+ "constinit",
88
+ "continue",
89
+ "decltype",
90
+ "default",
91
+ "delete",
92
+ "do",
93
+ "dynamic_cast|10",
94
+ "else",
95
+ "enum",
96
+ "explicit",
97
+ "export",
98
+ "extern",
99
+ "false",
100
+ "final",
101
+ "for",
102
+ "friend",
103
+ "goto",
104
+ "if",
105
+ "import",
106
+ "inline",
107
+ "module",
108
+ "mutable",
109
+ "namespace",
110
+ "new",
111
+ "noexcept",
112
+ "not",
113
+ "not_eq",
114
+ "nullptr",
115
+ "operator",
116
+ "or",
117
+ "or_eq",
118
+ "override",
119
+ "private",
120
+ "protected",
121
+ "public",
122
+ "reflexpr",
123
+ "register",
124
+ "reinterpret_cast|10",
125
+ "requires",
126
+ "return",
127
+ "sizeof",
128
+ "static_assert",
129
+ "static_cast|10",
130
+ "struct",
131
+ "switch",
132
+ "synchronized",
133
+ "template",
134
+ "this",
135
+ "thread_local",
136
+ "throw",
137
+ "transaction_safe",
138
+ "transaction_safe_dynamic",
139
+ "true",
140
+ "try",
141
+ "typedef",
142
+ "typeid",
143
+ "typename",
144
+ "union",
145
+ "using",
146
+ "virtual",
147
+ "volatile",
148
+ "while",
149
+ "xor",
150
+ "xor_eq"
151
+ ];
152
+ const RESERVED_TYPES = [
153
+ "bool",
154
+ "char",
155
+ "char16_t",
156
+ "char32_t",
157
+ "char8_t",
158
+ "double",
159
+ "float",
160
+ "int",
161
+ "long",
162
+ "short",
163
+ "void",
164
+ "wchar_t",
165
+ "unsigned",
166
+ "signed",
167
+ "const",
168
+ "static"
169
+ ];
170
+ const TYPE_HINTS = [
171
+ "any",
172
+ "auto_ptr",
173
+ "barrier",
174
+ "binary_semaphore",
175
+ "bitset",
176
+ "complex",
177
+ "condition_variable",
178
+ "condition_variable_any",
179
+ "counting_semaphore",
180
+ "deque",
181
+ "false_type",
182
+ "flat_map",
183
+ "flat_set",
184
+ "future",
185
+ "imaginary",
186
+ "initializer_list",
187
+ "istringstream",
188
+ "jthread",
189
+ "latch",
190
+ "lock_guard",
191
+ "multimap",
192
+ "multiset",
193
+ "mutex",
194
+ "optional",
195
+ "ostringstream",
196
+ "packaged_task",
197
+ "pair",
198
+ "promise",
199
+ "priority_queue",
200
+ "queue",
201
+ "recursive_mutex",
202
+ "recursive_timed_mutex",
203
+ "scoped_lock",
204
+ "set",
205
+ "shared_future",
206
+ "shared_lock",
207
+ "shared_mutex",
208
+ "shared_timed_mutex",
209
+ "shared_ptr",
210
+ "stack",
211
+ "string_view",
212
+ "stringstream",
213
+ "timed_mutex",
214
+ "thread",
215
+ "true_type",
216
+ "tuple",
217
+ "unique_lock",
218
+ "unique_ptr",
219
+ "unordered_map",
220
+ "unordered_multimap",
221
+ "unordered_multiset",
222
+ "unordered_set",
223
+ "variant",
224
+ "vector",
225
+ "weak_ptr",
226
+ "wstring",
227
+ "wstring_view"
228
+ ];
229
+ const FUNCTION_HINTS = [
230
+ "abort",
231
+ "abs",
232
+ "acos",
233
+ "apply",
234
+ "as_const",
235
+ "asin",
236
+ "atan",
237
+ "atan2",
238
+ "calloc",
239
+ "ceil",
240
+ "cerr",
241
+ "cin",
242
+ "clog",
243
+ "cos",
244
+ "cosh",
245
+ "cout",
246
+ "declval",
247
+ "endl",
248
+ "exchange",
249
+ "exit",
250
+ "exp",
251
+ "fabs",
252
+ "floor",
253
+ "fmod",
254
+ "forward",
255
+ "fprintf",
256
+ "fputs",
257
+ "free",
258
+ "frexp",
259
+ "fscanf",
260
+ "future",
261
+ "invoke",
262
+ "isalnum",
263
+ "isalpha",
264
+ "iscntrl",
265
+ "isdigit",
266
+ "isgraph",
267
+ "islower",
268
+ "isprint",
269
+ "ispunct",
270
+ "isspace",
271
+ "isupper",
272
+ "isxdigit",
273
+ "labs",
274
+ "launder",
275
+ "ldexp",
276
+ "log",
277
+ "log10",
278
+ "make_pair",
279
+ "make_shared",
280
+ "make_shared_for_overwrite",
281
+ "make_tuple",
282
+ "make_unique",
283
+ "malloc",
284
+ "memchr",
285
+ "memcmp",
286
+ "memcpy",
287
+ "memset",
288
+ "modf",
289
+ "move",
290
+ "pow",
291
+ "printf",
292
+ "putchar",
293
+ "puts",
294
+ "realloc",
295
+ "scanf",
296
+ "sin",
297
+ "sinh",
298
+ "snprintf",
299
+ "sprintf",
300
+ "sqrt",
301
+ "sscanf",
302
+ "std",
303
+ "stderr",
304
+ "stdin",
305
+ "stdout",
306
+ "strcat",
307
+ "strchr",
308
+ "strcmp",
309
+ "strcpy",
310
+ "strcspn",
311
+ "strlen",
312
+ "strncat",
313
+ "strncmp",
314
+ "strncpy",
315
+ "strpbrk",
316
+ "strrchr",
317
+ "strspn",
318
+ "strstr",
319
+ "swap",
320
+ "tan",
321
+ "tanh",
322
+ "terminate",
323
+ "to_underlying",
324
+ "tolower",
325
+ "toupper",
326
+ "vfprintf",
327
+ "visit",
328
+ "vprintf",
329
+ "vsprintf"
330
+ ];
331
+ const CPP_KEYWORDS = {
332
+ type: RESERVED_TYPES,
333
+ keyword: RESERVED_KEYWORDS,
334
+ literal: [
335
+ "NULL",
336
+ "false",
337
+ "nullopt",
338
+ "nullptr",
339
+ "true"
340
+ ],
341
+ built_in: ["_Pragma"],
342
+ _type_hints: TYPE_HINTS
343
+ };
344
+ const FUNCTION_DISPATCH = {
345
+ className: "function.dispatch",
346
+ relevance: 0,
347
+ keywords: { _hint: FUNCTION_HINTS },
348
+ begin: regex.concat(/\b/, `(?!${RESERVED_KEYWORDS.join("|")})`, hljs.IDENT_RE, regex.lookahead(/(<[^<>]+>|)\s*\(/))
349
+ };
350
+ const EXPRESSION_CONTAINS = [
351
+ FUNCTION_DISPATCH,
352
+ PREPROCESSOR,
353
+ CPP_PRIMITIVE_TYPES,
354
+ C_LINE_COMMENT_MODE,
355
+ hljs.C_BLOCK_COMMENT_MODE,
356
+ NUMBERS,
357
+ STRINGS
358
+ ];
359
+ const EXPRESSION_CONTEXT = {
360
+ variants: [
361
+ {
362
+ begin: /=/,
363
+ end: /;/
364
+ },
365
+ {
366
+ begin: /\(/,
367
+ end: /\)/
368
+ },
369
+ {
370
+ beginKeywords: "new throw return else",
371
+ end: /;/
372
+ }
373
+ ],
374
+ keywords: CPP_KEYWORDS,
375
+ contains: EXPRESSION_CONTAINS.concat([{
376
+ begin: /\(/,
377
+ end: /\)/,
378
+ keywords: CPP_KEYWORDS,
379
+ contains: EXPRESSION_CONTAINS.concat(["self"]),
380
+ relevance: 0
381
+ }]),
382
+ relevance: 0
383
+ };
384
+ const FUNCTION_DECLARATION = {
385
+ className: "function",
386
+ begin: "(" + FUNCTION_TYPE_RE + "[\\*&\\s]+)+" + FUNCTION_TITLE,
387
+ returnBegin: true,
388
+ end: /[{;=]/,
389
+ excludeEnd: true,
390
+ keywords: CPP_KEYWORDS,
391
+ illegal: /[^\w\s\*&:<>.]/,
392
+ contains: [
393
+ {
394
+ begin: DECLTYPE_AUTO_RE,
395
+ keywords: CPP_KEYWORDS,
396
+ relevance: 0
397
+ },
398
+ {
399
+ begin: FUNCTION_TITLE,
400
+ returnBegin: true,
401
+ contains: [TITLE_MODE],
402
+ relevance: 0
403
+ },
404
+ {
405
+ begin: /::/,
406
+ relevance: 0
407
+ },
408
+ {
409
+ begin: /:/,
410
+ endsWithParent: true,
411
+ contains: [STRINGS, NUMBERS]
412
+ },
413
+ {
414
+ relevance: 0,
415
+ match: /,/
416
+ },
417
+ {
418
+ className: "params",
419
+ begin: /\(/,
420
+ end: /\)/,
421
+ keywords: CPP_KEYWORDS,
422
+ relevance: 0,
423
+ contains: [
424
+ C_LINE_COMMENT_MODE,
425
+ hljs.C_BLOCK_COMMENT_MODE,
426
+ STRINGS,
427
+ NUMBERS,
428
+ CPP_PRIMITIVE_TYPES,
429
+ {
430
+ begin: /\(/,
431
+ end: /\)/,
432
+ keywords: CPP_KEYWORDS,
433
+ relevance: 0,
434
+ contains: [
435
+ "self",
436
+ C_LINE_COMMENT_MODE,
437
+ hljs.C_BLOCK_COMMENT_MODE,
438
+ STRINGS,
439
+ NUMBERS,
440
+ CPP_PRIMITIVE_TYPES
441
+ ]
442
+ }
443
+ ]
444
+ },
445
+ CPP_PRIMITIVE_TYPES,
446
+ C_LINE_COMMENT_MODE,
447
+ hljs.C_BLOCK_COMMENT_MODE,
448
+ PREPROCESSOR
449
+ ]
450
+ };
451
+ return {
452
+ name: "C++",
453
+ aliases: [
454
+ "cc",
455
+ "c++",
456
+ "h++",
457
+ "hpp",
458
+ "hh",
459
+ "hxx",
460
+ "cxx"
461
+ ],
462
+ keywords: CPP_KEYWORDS,
463
+ illegal: "</",
464
+ classNameAliases: { "function.dispatch": "built_in" },
465
+ contains: [].concat(EXPRESSION_CONTEXT, FUNCTION_DECLARATION, FUNCTION_DISPATCH, EXPRESSION_CONTAINS, [
466
+ PREPROCESSOR,
467
+ {
468
+ begin: "\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
469
+ end: ">",
470
+ keywords: CPP_KEYWORDS,
471
+ contains: ["self", CPP_PRIMITIVE_TYPES]
472
+ },
473
+ {
474
+ begin: hljs.IDENT_RE + "::",
475
+ keywords: CPP_KEYWORDS
476
+ },
477
+ {
478
+ match: [
479
+ /\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,
480
+ /\s+/,
481
+ /\w+/
482
+ ],
483
+ className: {
484
+ 1: "keyword",
485
+ 3: "title.class"
486
+ }
487
+ }
488
+ ])
489
+ };
490
+ }
491
+ //#endregion
492
+ export { cpp as default };
@@ -0,0 +1,80 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/crmsh.js
2
+ /** @type LanguageFn */
3
+ function crmsh(hljs) {
4
+ const RESOURCES = "primitive rsc_template";
5
+ const COMMANDS = "group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";
6
+ return {
7
+ name: "crmsh",
8
+ aliases: ["crm", "pcmk"],
9
+ case_insensitive: true,
10
+ keywords: {
11
+ keyword: "params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",
12
+ literal: "Master Started Slave Stopped start promote demote stop monitor true false"
13
+ },
14
+ contains: [
15
+ hljs.HASH_COMMENT_MODE,
16
+ {
17
+ beginKeywords: "node",
18
+ starts: {
19
+ end: "\\s*([\\w_-]+:)?",
20
+ starts: {
21
+ className: "title",
22
+ end: "\\s*[\\$\\w_][\\w_-]*"
23
+ }
24
+ }
25
+ },
26
+ {
27
+ beginKeywords: RESOURCES,
28
+ starts: {
29
+ className: "title",
30
+ end: "\\s*[\\$\\w_][\\w_-]*",
31
+ starts: { end: "\\s*@?[\\w_][\\w_\\.:-]*" }
32
+ }
33
+ },
34
+ {
35
+ begin: "\\b(" + COMMANDS.split(" ").join("|") + ")\\s+",
36
+ keywords: COMMANDS,
37
+ starts: {
38
+ className: "title",
39
+ end: "[\\$\\w_][\\w_-]*"
40
+ }
41
+ },
42
+ {
43
+ beginKeywords: "property rsc_defaults op_defaults",
44
+ starts: {
45
+ className: "title",
46
+ end: "\\s*([\\w_-]+:)?"
47
+ }
48
+ },
49
+ hljs.QUOTE_STRING_MODE,
50
+ {
51
+ className: "meta",
52
+ begin: "(ocf|systemd|service|lsb):[\\w_:-]+",
53
+ relevance: 0
54
+ },
55
+ {
56
+ className: "number",
57
+ begin: "\\b\\d+(\\.\\d+)?(ms|s|h|m)?",
58
+ relevance: 0
59
+ },
60
+ {
61
+ className: "literal",
62
+ begin: "[-]?(infinity|inf)",
63
+ relevance: 0
64
+ },
65
+ {
66
+ className: "attr",
67
+ begin: /([A-Za-z$_#][\w_-]+)=/,
68
+ relevance: 0
69
+ },
70
+ {
71
+ className: "tag",
72
+ begin: "</?",
73
+ end: "/?>",
74
+ relevance: 0
75
+ }
76
+ ]
77
+ };
78
+ }
79
+ //#endregion
80
+ export { crmsh as default };