@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.
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +34 -3
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +55 -0
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +7 -2
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +29 -0
- package/dist/index.js +1 -1
- package/editor/chunks/extensions.js +39 -3
- package/editor/extensions/preset.d.ts +2 -0
- package/editor/extensions/table-commands.d.ts +1 -1
- package/editor/table-overlay.d.ts +8 -3
- package/package.json +2 -1
- package/styles/ui-editor-table-overlay.css +30 -0
- package/styles/ui-editor-table-toolbar.css +7 -2
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +9 -3
- package/vue/UiEditorTableOverlay.d.ts +8 -0
- package/vue/UiEditorTableOverlay.vue +45 -2
- package/vue/UiEditorTableToolbar.vue +7 -2
- package/vue/chunks/1c.js +106 -0
- package/vue/chunks/UiEditorTableOverlay.js +14 -4
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/abnf.js +61 -0
- package/vue/chunks/accesslog.js +72 -0
- package/vue/chunks/actionscript.js +139 -0
- package/vue/chunks/ada.js +183 -0
- package/vue/chunks/angelscript.js +141 -0
- package/vue/chunks/apache.js +88 -0
- package/vue/chunks/applescript.js +99 -0
- package/vue/chunks/arcade.js +405 -0
- package/vue/chunks/arduino.js +871 -0
- package/vue/chunks/armasm.js +65 -0
- package/vue/chunks/asciidoc.js +181 -0
- package/vue/chunks/aspectj.js +202 -0
- package/vue/chunks/autohotkey.js +54 -0
- package/vue/chunks/autoit.js +132 -0
- package/vue/chunks/avrasm.js +46 -0
- package/vue/chunks/awk.js +58 -0
- package/vue/chunks/axapta.js +167 -0
- package/vue/chunks/bash.js +358 -0
- package/vue/chunks/basic.js +221 -0
- package/vue/chunks/bnf.js +27 -0
- package/vue/chunks/brainfuck.js +40 -0
- package/vue/chunks/c.js +265 -0
- package/vue/chunks/cal.js +136 -0
- package/vue/chunks/capnproto.js +86 -0
- package/vue/chunks/ceylon.js +125 -0
- package/vue/chunks/clean.js +54 -0
- package/vue/chunks/clojure-repl.js +17 -0
- package/vue/chunks/clojure.js +133 -0
- package/vue/chunks/cmake.js +23 -0
- package/vue/chunks/coffeescript.js +291 -0
- package/vue/chunks/coq.js +436 -0
- package/vue/chunks/cos.js +77 -0
- package/vue/chunks/cpp.js +492 -0
- package/vue/chunks/crmsh.js +80 -0
- package/vue/chunks/crystal.js +260 -0
- package/vue/chunks/csharp.js +376 -0
- package/vue/chunks/csp.js +52 -0
- package/vue/chunks/css.js +890 -0
- package/vue/chunks/d.js +184 -0
- package/vue/chunks/dart.js +226 -0
- package/vue/chunks/delphi.js +227 -0
- package/vue/chunks/diff.js +40 -0
- package/vue/chunks/django.js +43 -0
- package/vue/chunks/dns.js +66 -0
- package/vue/chunks/dockerfile.js +35 -0
- package/vue/chunks/dos.js +147 -0
- package/vue/chunks/dsconfig.js +55 -0
- package/vue/chunks/dts.js +119 -0
- package/vue/chunks/dust.js +33 -0
- package/vue/chunks/ebnf.js +40 -0
- package/vue/chunks/elixir.js +241 -0
- package/vue/chunks/elm.js +103 -0
- package/vue/chunks/erb.js +17 -0
- package/vue/chunks/erlang-repl.js +41 -0
- package/vue/chunks/erlang.js +236 -0
- package/vue/chunks/excel.js +562 -0
- package/vue/chunks/fix.js +30 -0
- package/vue/chunks/flix.js +60 -0
- package/vue/chunks/fortran.js +543 -0
- package/vue/chunks/fsharp.js +440 -0
- package/vue/chunks/gams.js +134 -0
- package/vue/chunks/gauss.js +167 -0
- package/vue/chunks/gcode.js +131 -0
- package/vue/chunks/gherkin.js +41 -0
- package/vue/chunks/glsl.js +25 -0
- package/vue/chunks/gml.js +3119 -0
- package/vue/chunks/go.js +140 -0
- package/vue/chunks/golo.js +72 -0
- package/vue/chunks/gradle.js +181 -0
- package/vue/chunks/graphql.js +68 -0
- package/vue/chunks/groovy.js +159 -0
- package/vue/chunks/haml.js +96 -0
- package/vue/chunks/handlebars.js +191 -0
- package/vue/chunks/haskell.js +149 -0
- package/vue/chunks/haxe.js +142 -0
- package/vue/chunks/hsp.js +45 -0
- package/vue/chunks/http.js +77 -0
- package/vue/chunks/hy.js +92 -0
- package/vue/chunks/inform7.js +45 -0
- package/vue/chunks/ini.js +94 -0
- package/vue/chunks/irpf90.js +52 -0
- package/vue/chunks/isbl.js +112 -0
- package/vue/chunks/java.js +237 -0
- package/vue/chunks/javascript.js +570 -0
- package/vue/chunks/jboss-cli.js +46 -0
- package/vue/chunks/json.js +45 -0
- package/vue/chunks/julia-repl.js +18 -0
- package/vue/chunks/julia.js +353 -0
- package/vue/chunks/kotlin.js +216 -0
- package/vue/chunks/lasso.js +127 -0
- package/vue/chunks/latex.js +206 -0
- package/vue/chunks/ldif.js +25 -0
- package/vue/chunks/leaf.js +72 -0
- package/vue/chunks/less.js +953 -0
- package/vue/chunks/lisp.js +119 -0
- package/vue/chunks/livecodeserver.js +86 -0
- package/vue/chunks/livescript.js +309 -0
- package/vue/chunks/llvm.js +77 -0
- package/vue/chunks/lsl.js +55 -0
- package/vue/chunks/lua.js +49 -0
- package/vue/chunks/makefile.js +62 -0
- package/vue/chunks/markdown.js +194 -0
- package/vue/chunks/mathematica.js +7317 -0
- package/vue/chunks/matlab.js +70 -0
- package/vue/chunks/maxima.js +38 -0
- package/vue/chunks/mel.js +24 -0
- package/vue/chunks/mercury.js +62 -0
- package/vue/chunks/mipsasm.js +53 -0
- package/vue/chunks/mizar.js +10 -0
- package/vue/chunks/mojolicious.js +27 -0
- package/vue/chunks/monkey.js +158 -0
- package/vue/chunks/moonscript.js +102 -0
- package/vue/chunks/n1ql.js +346 -0
- package/vue/chunks/nestedtext.js +66 -0
- package/vue/chunks/nginx.js +127 -0
- package/vue/chunks/nim.js +174 -0
- package/vue/chunks/nix.js +334 -0
- package/vue/chunks/node-repl.js +20 -0
- package/vue/chunks/nsis.js +515 -0
- package/vue/chunks/objectivec.js +235 -0
- package/vue/chunks/ocaml.js +52 -0
- package/vue/chunks/openscad.js +66 -0
- package/vue/chunks/oxygene.js +58 -0
- package/vue/chunks/parser3.js +40 -0
- package/vue/chunks/perl.js +454 -0
- package/vue/chunks/pf.js +30 -0
- package/vue/chunks/pgsql.js +196 -0
- package/vue/chunks/php-template.js +43 -0
- package/vue/chunks/php.js +527 -0
- package/vue/chunks/plaintext.js +10 -0
- package/vue/chunks/pony.js +60 -0
- package/vue/chunks/powershell.js +208 -0
- package/vue/chunks/processing.js +407 -0
- package/vue/chunks/profile.js +38 -0
- package/vue/chunks/prolog.js +62 -0
- package/vue/chunks/properties.js +45 -0
- package/vue/chunks/protobuf.js +63 -0
- package/vue/chunks/puppet.js +87 -0
- package/vue/chunks/purebasic.js +42 -0
- package/vue/chunks/python-repl.js +19 -0
- package/vue/chunks/python.js +357 -0
- package/vue/chunks/q.js +21 -0
- package/vue/chunks/qml.js +134 -0
- package/vue/chunks/r.js +145 -0
- package/vue/chunks/reasonml.js +134 -0
- package/vue/chunks/rib.js +16 -0
- package/vue/chunks/roboconf.js +54 -0
- package/vue/chunks/routeros.js +109 -0
- package/vue/chunks/rsl.js +138 -0
- package/vue/chunks/ruby.js +322 -0
- package/vue/chunks/ruleslanguage.js +26 -0
- package/vue/chunks/rust.js +296 -0
- package/vue/chunks/sas.js +533 -0
- package/vue/chunks/scala.js +173 -0
- package/vue/chunks/scheme.js +118 -0
- package/vue/chunks/scilab.js +45 -0
- package/vue/chunks/scss.js +900 -0
- package/vue/chunks/shell.js +18 -0
- package/vue/chunks/smali.js +113 -0
- package/vue/chunks/smalltalk.js +59 -0
- package/vue/chunks/sml.js +49 -0
- package/vue/chunks/sqf.js +2599 -0
- package/vue/chunks/sql.js +624 -0
- package/vue/chunks/stan.js +471 -0
- package/vue/chunks/stata.js +33 -0
- package/vue/chunks/step21.js +53 -0
- package/vue/chunks/stylus.js +925 -0
- package/vue/chunks/subunit.js +34 -0
- package/vue/chunks/swift.js +699 -0
- package/vue/chunks/taggerscript.js +37 -0
- package/vue/chunks/tap.js +30 -0
- package/vue/chunks/tcl.js +165 -0
- package/vue/chunks/thrift.js +65 -0
- package/vue/chunks/tp.js +155 -0
- package/vue/chunks/twig.js +232 -0
- package/vue/chunks/typescript.js +672 -0
- package/vue/chunks/vala.js +39 -0
- package/vue/chunks/vbnet.js +86 -0
- package/vue/chunks/vbscript-html.js +14 -0
- package/vue/chunks/vbscript.js +200 -0
- package/vue/chunks/verilog.js +534 -0
- package/vue/chunks/vhdl.js +190 -0
- package/vue/chunks/vim.js +54 -0
- package/vue/chunks/wasm.js +111 -0
- package/vue/chunks/wren.js +229 -0
- package/vue/chunks/x86asm.js +64 -0
- package/vue/chunks/xl.js +192 -0
- package/vue/chunks/xml.js +175 -0
- package/vue/chunks/xquery.js +303 -0
- package/vue/chunks/yaml.js +159 -0
- package/vue/chunks/zephir.js +74 -0
- package/vue/components.css +119 -85
- package/vue/editor/LoomaEditor.d.ts +7 -7
- package/vue/editor/code-language-catalog.d.ts +196 -0
- package/vue/editor/index.js +290 -20
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/shell.js
|
|
2
|
+
/** @type LanguageFn */
|
|
3
|
+
function shell(hljs) {
|
|
4
|
+
return {
|
|
5
|
+
name: "Shell Session",
|
|
6
|
+
aliases: ["console", "shellsession"],
|
|
7
|
+
contains: [{
|
|
8
|
+
className: "meta.prompt",
|
|
9
|
+
begin: /^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,
|
|
10
|
+
starts: {
|
|
11
|
+
end: /[^\\](?=\s*$)/,
|
|
12
|
+
subLanguage: "bash"
|
|
13
|
+
}
|
|
14
|
+
}]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { shell as default };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/smali.js
|
|
2
|
+
function smali(hljs) {
|
|
3
|
+
const smali_instr_low_prio = [
|
|
4
|
+
"add",
|
|
5
|
+
"and",
|
|
6
|
+
"cmp",
|
|
7
|
+
"cmpg",
|
|
8
|
+
"cmpl",
|
|
9
|
+
"const",
|
|
10
|
+
"div",
|
|
11
|
+
"double",
|
|
12
|
+
"float",
|
|
13
|
+
"goto",
|
|
14
|
+
"if",
|
|
15
|
+
"int",
|
|
16
|
+
"long",
|
|
17
|
+
"move",
|
|
18
|
+
"mul",
|
|
19
|
+
"neg",
|
|
20
|
+
"new",
|
|
21
|
+
"nop",
|
|
22
|
+
"not",
|
|
23
|
+
"or",
|
|
24
|
+
"rem",
|
|
25
|
+
"return",
|
|
26
|
+
"shl",
|
|
27
|
+
"shr",
|
|
28
|
+
"sput",
|
|
29
|
+
"sub",
|
|
30
|
+
"throw",
|
|
31
|
+
"ushr",
|
|
32
|
+
"xor"
|
|
33
|
+
];
|
|
34
|
+
return {
|
|
35
|
+
name: "Smali",
|
|
36
|
+
contains: [
|
|
37
|
+
{
|
|
38
|
+
className: "string",
|
|
39
|
+
begin: "\"",
|
|
40
|
+
end: "\"",
|
|
41
|
+
relevance: 0
|
|
42
|
+
},
|
|
43
|
+
hljs.COMMENT("#", "$", { relevance: 0 }),
|
|
44
|
+
{
|
|
45
|
+
className: "keyword",
|
|
46
|
+
variants: [
|
|
47
|
+
{ begin: "\\s*\\.end\\s[a-zA-Z0-9]*" },
|
|
48
|
+
{
|
|
49
|
+
begin: "^[ ]*\\.[a-zA-Z]*",
|
|
50
|
+
relevance: 0
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
begin: "\\s:[a-zA-Z_0-9]*",
|
|
54
|
+
relevance: 0
|
|
55
|
+
},
|
|
56
|
+
{ begin: "\\s(" + [
|
|
57
|
+
"transient",
|
|
58
|
+
"constructor",
|
|
59
|
+
"abstract",
|
|
60
|
+
"final",
|
|
61
|
+
"synthetic",
|
|
62
|
+
"public",
|
|
63
|
+
"private",
|
|
64
|
+
"protected",
|
|
65
|
+
"static",
|
|
66
|
+
"bridge",
|
|
67
|
+
"system"
|
|
68
|
+
].join("|") + ")" }
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
className: "built_in",
|
|
73
|
+
variants: [
|
|
74
|
+
{ begin: "\\s(" + smali_instr_low_prio.join("|") + ")\\s" },
|
|
75
|
+
{
|
|
76
|
+
begin: "\\s(" + smali_instr_low_prio.join("|") + ")((-|/)[a-zA-Z0-9]+)+\\s",
|
|
77
|
+
relevance: 10
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
begin: "\\s(" + [
|
|
81
|
+
"aget",
|
|
82
|
+
"aput",
|
|
83
|
+
"array",
|
|
84
|
+
"check",
|
|
85
|
+
"execute",
|
|
86
|
+
"fill",
|
|
87
|
+
"filled",
|
|
88
|
+
"goto/16",
|
|
89
|
+
"goto/32",
|
|
90
|
+
"iget",
|
|
91
|
+
"instance",
|
|
92
|
+
"invoke",
|
|
93
|
+
"iput",
|
|
94
|
+
"monitor",
|
|
95
|
+
"packed",
|
|
96
|
+
"sget",
|
|
97
|
+
"sparse"
|
|
98
|
+
].join("|") + ")((-|/)[a-zA-Z0-9]+)*\\s",
|
|
99
|
+
relevance: 10
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
className: "class",
|
|
105
|
+
begin: "L[^(;:\n]*;",
|
|
106
|
+
relevance: 0
|
|
107
|
+
},
|
|
108
|
+
{ begin: "[vp][0-9]+" }
|
|
109
|
+
]
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
export { smali as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/smalltalk.js
|
|
2
|
+
function smalltalk(hljs) {
|
|
3
|
+
const VAR_IDENT_RE = "[a-z][a-zA-Z0-9_]*";
|
|
4
|
+
const CHAR = {
|
|
5
|
+
className: "string",
|
|
6
|
+
begin: "\\$.{1}"
|
|
7
|
+
};
|
|
8
|
+
const SYMBOL = {
|
|
9
|
+
className: "symbol",
|
|
10
|
+
begin: "#" + hljs.UNDERSCORE_IDENT_RE
|
|
11
|
+
};
|
|
12
|
+
return {
|
|
13
|
+
name: "Smalltalk",
|
|
14
|
+
aliases: ["st"],
|
|
15
|
+
keywords: [
|
|
16
|
+
"self",
|
|
17
|
+
"super",
|
|
18
|
+
"nil",
|
|
19
|
+
"true",
|
|
20
|
+
"false",
|
|
21
|
+
"thisContext"
|
|
22
|
+
],
|
|
23
|
+
contains: [
|
|
24
|
+
hljs.COMMENT("\"", "\""),
|
|
25
|
+
hljs.APOS_STRING_MODE,
|
|
26
|
+
{
|
|
27
|
+
className: "type",
|
|
28
|
+
begin: "\\b[A-Z][A-Za-z0-9_]*",
|
|
29
|
+
relevance: 0
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
begin: VAR_IDENT_RE + ":",
|
|
33
|
+
relevance: 0
|
|
34
|
+
},
|
|
35
|
+
hljs.C_NUMBER_MODE,
|
|
36
|
+
SYMBOL,
|
|
37
|
+
CHAR,
|
|
38
|
+
{
|
|
39
|
+
begin: "\\|[ ]*" + VAR_IDENT_RE + "([ ]+" + VAR_IDENT_RE + ")*[ ]*\\|",
|
|
40
|
+
returnBegin: true,
|
|
41
|
+
end: /\|/,
|
|
42
|
+
illegal: /\S/,
|
|
43
|
+
contains: [{ begin: "(\\|[ ]*)?" + VAR_IDENT_RE }]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
begin: "#\\(",
|
|
47
|
+
end: "\\)",
|
|
48
|
+
contains: [
|
|
49
|
+
hljs.APOS_STRING_MODE,
|
|
50
|
+
CHAR,
|
|
51
|
+
hljs.C_NUMBER_MODE,
|
|
52
|
+
SYMBOL
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { smalltalk as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/sml.js
|
|
2
|
+
function sml(hljs) {
|
|
3
|
+
return {
|
|
4
|
+
name: "SML (Standard ML)",
|
|
5
|
+
aliases: ["ml"],
|
|
6
|
+
keywords: {
|
|
7
|
+
$pattern: "[a-z_]\\w*!?",
|
|
8
|
+
keyword: "abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",
|
|
9
|
+
built_in: "array bool char exn int list option order real ref string substring vector unit word",
|
|
10
|
+
literal: "true false NONE SOME LESS EQUAL GREATER nil"
|
|
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
|
+
{ begin: "[a-z_]\\w*'[\\w']*" },
|
|
34
|
+
hljs.inherit(hljs.APOS_STRING_MODE, {
|
|
35
|
+
className: "string",
|
|
36
|
+
relevance: 0
|
|
37
|
+
}),
|
|
38
|
+
hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null }),
|
|
39
|
+
{
|
|
40
|
+
className: "number",
|
|
41
|
+
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_]+)?)?)",
|
|
42
|
+
relevance: 0
|
|
43
|
+
},
|
|
44
|
+
{ begin: /[-=]>/ }
|
|
45
|
+
]
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { sml as default };
|