@threadlabs/looma 0.18.6 → 0.19.1
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/components/ui-tree-item/ui-tree-item.html +5 -5
- package/components/ui-tree-item/ui-tree-item.js +20 -3
- package/dist/index.js +1 -1
- package/editor/chunks/extensions.js +24 -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/styles/ui-tree-item.css +5 -5
- 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/UiTreeItem.vue +5 -5
- package/vue/chunks/1c.js +106 -0
- package/vue/chunks/UiEditorTableOverlay.js +14 -4
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiTreeItem.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 +204 -170
- 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,118 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/scheme.js
|
|
2
|
+
function scheme(hljs) {
|
|
3
|
+
const SCHEME_IDENT_RE = "[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+";
|
|
4
|
+
const SCHEME_SIMPLE_NUMBER_RE = "(-|\\+)?\\d+([./]\\d+)?";
|
|
5
|
+
const SCHEME_COMPLEX_NUMBER_RE = "(-|\\+)?\\d+([./]\\d+)?[+\\-](-|\\+)?\\d+([./]\\d+)?i";
|
|
6
|
+
const KEYWORDS = {
|
|
7
|
+
$pattern: SCHEME_IDENT_RE,
|
|
8
|
+
built_in: "case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"
|
|
9
|
+
};
|
|
10
|
+
const LITERAL = {
|
|
11
|
+
className: "literal",
|
|
12
|
+
begin: "(#t|#f|#\\\\" + SCHEME_IDENT_RE + "|#\\\\.)"
|
|
13
|
+
};
|
|
14
|
+
const NUMBER = {
|
|
15
|
+
className: "number",
|
|
16
|
+
variants: [
|
|
17
|
+
{
|
|
18
|
+
begin: SCHEME_SIMPLE_NUMBER_RE,
|
|
19
|
+
relevance: 0
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
begin: SCHEME_COMPLEX_NUMBER_RE,
|
|
23
|
+
relevance: 0
|
|
24
|
+
},
|
|
25
|
+
{ begin: "#b[0-1]+(/[0-1]+)?" },
|
|
26
|
+
{ begin: "#o[0-7]+(/[0-7]+)?" },
|
|
27
|
+
{ begin: "#x[0-9a-f]+(/[0-9a-f]+)?" }
|
|
28
|
+
]
|
|
29
|
+
};
|
|
30
|
+
const STRING = hljs.QUOTE_STRING_MODE;
|
|
31
|
+
const COMMENT_MODES = [hljs.COMMENT(";", "$", { relevance: 0 }), hljs.COMMENT("#\\|", "\\|#")];
|
|
32
|
+
const IDENT = {
|
|
33
|
+
begin: SCHEME_IDENT_RE,
|
|
34
|
+
relevance: 0
|
|
35
|
+
};
|
|
36
|
+
const QUOTED_IDENT = {
|
|
37
|
+
className: "symbol",
|
|
38
|
+
begin: "'" + SCHEME_IDENT_RE
|
|
39
|
+
};
|
|
40
|
+
const BODY = {
|
|
41
|
+
endsWithParent: true,
|
|
42
|
+
relevance: 0
|
|
43
|
+
};
|
|
44
|
+
const QUOTED_LIST = {
|
|
45
|
+
variants: [{ begin: /'/ }, { begin: "`" }],
|
|
46
|
+
contains: [{
|
|
47
|
+
begin: "\\(",
|
|
48
|
+
end: "\\)",
|
|
49
|
+
contains: [
|
|
50
|
+
"self",
|
|
51
|
+
LITERAL,
|
|
52
|
+
STRING,
|
|
53
|
+
NUMBER,
|
|
54
|
+
IDENT,
|
|
55
|
+
QUOTED_IDENT
|
|
56
|
+
]
|
|
57
|
+
}]
|
|
58
|
+
};
|
|
59
|
+
const NAME = {
|
|
60
|
+
className: "name",
|
|
61
|
+
relevance: 0,
|
|
62
|
+
begin: SCHEME_IDENT_RE,
|
|
63
|
+
keywords: KEYWORDS
|
|
64
|
+
};
|
|
65
|
+
const LIST = {
|
|
66
|
+
variants: [{
|
|
67
|
+
begin: "\\(",
|
|
68
|
+
end: "\\)"
|
|
69
|
+
}, {
|
|
70
|
+
begin: "\\[",
|
|
71
|
+
end: "\\]"
|
|
72
|
+
}],
|
|
73
|
+
contains: [
|
|
74
|
+
{
|
|
75
|
+
begin: /lambda/,
|
|
76
|
+
endsWithParent: true,
|
|
77
|
+
returnBegin: true,
|
|
78
|
+
contains: [NAME, {
|
|
79
|
+
endsParent: true,
|
|
80
|
+
variants: [{
|
|
81
|
+
begin: /\(/,
|
|
82
|
+
end: /\)/
|
|
83
|
+
}, {
|
|
84
|
+
begin: /\[/,
|
|
85
|
+
end: /\]/
|
|
86
|
+
}],
|
|
87
|
+
contains: [IDENT]
|
|
88
|
+
}]
|
|
89
|
+
},
|
|
90
|
+
NAME,
|
|
91
|
+
BODY
|
|
92
|
+
]
|
|
93
|
+
};
|
|
94
|
+
BODY.contains = [
|
|
95
|
+
LITERAL,
|
|
96
|
+
NUMBER,
|
|
97
|
+
STRING,
|
|
98
|
+
IDENT,
|
|
99
|
+
QUOTED_IDENT,
|
|
100
|
+
QUOTED_LIST,
|
|
101
|
+
LIST
|
|
102
|
+
].concat(COMMENT_MODES);
|
|
103
|
+
return {
|
|
104
|
+
name: "Scheme",
|
|
105
|
+
aliases: ["scm"],
|
|
106
|
+
illegal: /\S/,
|
|
107
|
+
contains: [
|
|
108
|
+
hljs.SHEBANG(),
|
|
109
|
+
NUMBER,
|
|
110
|
+
STRING,
|
|
111
|
+
QUOTED_IDENT,
|
|
112
|
+
QUOTED_LIST,
|
|
113
|
+
LIST
|
|
114
|
+
].concat(COMMENT_MODES)
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
export { scheme as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/scilab.js
|
|
2
|
+
function scilab(hljs) {
|
|
3
|
+
const COMMON_CONTAINS = [hljs.C_NUMBER_MODE, {
|
|
4
|
+
className: "string",
|
|
5
|
+
begin: "'|\"",
|
|
6
|
+
end: "'|\"",
|
|
7
|
+
contains: [hljs.BACKSLASH_ESCAPE, { begin: "''" }]
|
|
8
|
+
}];
|
|
9
|
+
return {
|
|
10
|
+
name: "Scilab",
|
|
11
|
+
aliases: ["sci"],
|
|
12
|
+
keywords: {
|
|
13
|
+
$pattern: /%?\w+/,
|
|
14
|
+
keyword: "abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",
|
|
15
|
+
literal: "%f %F %t %T %pi %eps %inf %nan %e %i %z %s",
|
|
16
|
+
built_in: "abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"
|
|
17
|
+
},
|
|
18
|
+
illegal: "(\"|#|/\\*|\\s+/\\w+)",
|
|
19
|
+
contains: [
|
|
20
|
+
{
|
|
21
|
+
className: "function",
|
|
22
|
+
beginKeywords: "function",
|
|
23
|
+
end: "$",
|
|
24
|
+
contains: [hljs.UNDERSCORE_TITLE_MODE, {
|
|
25
|
+
className: "params",
|
|
26
|
+
begin: "\\(",
|
|
27
|
+
end: "\\)"
|
|
28
|
+
}]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
begin: "[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",
|
|
32
|
+
relevance: 0
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
begin: "\\[",
|
|
36
|
+
end: "\\][\\.']*",
|
|
37
|
+
relevance: 0,
|
|
38
|
+
contains: COMMON_CONTAINS
|
|
39
|
+
},
|
|
40
|
+
hljs.COMMENT("//", "$")
|
|
41
|
+
].concat(COMMON_CONTAINS)
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { scilab as default };
|