@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.
- 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 +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/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,45 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/properties.js
|
|
2
|
+
/** @type LanguageFn */
|
|
3
|
+
function properties(hljs) {
|
|
4
|
+
const WS0 = "[ \\t\\f]*";
|
|
5
|
+
const WS1 = "[ \\t\\f]+";
|
|
6
|
+
const EQUAL_DELIM = WS0 + "[:=]" + WS0;
|
|
7
|
+
const WS_DELIM = WS1;
|
|
8
|
+
const DELIM = "(" + EQUAL_DELIM + "|" + WS_DELIM + ")";
|
|
9
|
+
const KEY = "([^\\\\:= \\t\\f\\n]|\\\\.)+";
|
|
10
|
+
const DELIM_AND_VALUE = {
|
|
11
|
+
end: DELIM,
|
|
12
|
+
relevance: 0,
|
|
13
|
+
starts: {
|
|
14
|
+
className: "string",
|
|
15
|
+
end: /$/,
|
|
16
|
+
relevance: 0,
|
|
17
|
+
contains: [{ begin: "\\\\\\\\" }, { begin: "\\\\\\n" }]
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
name: ".properties",
|
|
22
|
+
disableAutodetect: true,
|
|
23
|
+
case_insensitive: true,
|
|
24
|
+
illegal: /\S/,
|
|
25
|
+
contains: [
|
|
26
|
+
hljs.COMMENT("^\\s*[!#]", "$"),
|
|
27
|
+
{
|
|
28
|
+
returnBegin: true,
|
|
29
|
+
variants: [{ begin: KEY + EQUAL_DELIM }, { begin: KEY + WS_DELIM }],
|
|
30
|
+
contains: [{
|
|
31
|
+
className: "attr",
|
|
32
|
+
begin: KEY,
|
|
33
|
+
endsParent: true
|
|
34
|
+
}],
|
|
35
|
+
starts: DELIM_AND_VALUE
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
className: "attr",
|
|
39
|
+
begin: KEY + WS0 + "$"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { properties as default };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/protobuf.js
|
|
2
|
+
function protobuf(hljs) {
|
|
3
|
+
const KEYWORDS = [
|
|
4
|
+
"package",
|
|
5
|
+
"import",
|
|
6
|
+
"option",
|
|
7
|
+
"optional",
|
|
8
|
+
"required",
|
|
9
|
+
"repeated",
|
|
10
|
+
"group",
|
|
11
|
+
"oneof"
|
|
12
|
+
];
|
|
13
|
+
const TYPES = [
|
|
14
|
+
"double",
|
|
15
|
+
"float",
|
|
16
|
+
"int32",
|
|
17
|
+
"int64",
|
|
18
|
+
"uint32",
|
|
19
|
+
"uint64",
|
|
20
|
+
"sint32",
|
|
21
|
+
"sint64",
|
|
22
|
+
"fixed32",
|
|
23
|
+
"fixed64",
|
|
24
|
+
"sfixed32",
|
|
25
|
+
"sfixed64",
|
|
26
|
+
"bool",
|
|
27
|
+
"string",
|
|
28
|
+
"bytes"
|
|
29
|
+
];
|
|
30
|
+
const CLASS_DEFINITION = {
|
|
31
|
+
match: [/(message|enum|service)\s+/, hljs.IDENT_RE],
|
|
32
|
+
scope: {
|
|
33
|
+
1: "keyword",
|
|
34
|
+
2: "title.class"
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return {
|
|
38
|
+
name: "Protocol Buffers",
|
|
39
|
+
aliases: ["proto"],
|
|
40
|
+
keywords: {
|
|
41
|
+
keyword: KEYWORDS,
|
|
42
|
+
type: TYPES,
|
|
43
|
+
literal: ["true", "false"]
|
|
44
|
+
},
|
|
45
|
+
contains: [
|
|
46
|
+
hljs.QUOTE_STRING_MODE,
|
|
47
|
+
hljs.NUMBER_MODE,
|
|
48
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
49
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
50
|
+
CLASS_DEFINITION,
|
|
51
|
+
{
|
|
52
|
+
className: "function",
|
|
53
|
+
beginKeywords: "rpc",
|
|
54
|
+
end: /[{;]/,
|
|
55
|
+
excludeEnd: true,
|
|
56
|
+
keywords: "rpc returns"
|
|
57
|
+
},
|
|
58
|
+
{ begin: /^\s*[A-Z_]+(?=\s*=[^\n]+;$)/ }
|
|
59
|
+
]
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { protobuf as default };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/puppet.js
|
|
2
|
+
function puppet(hljs) {
|
|
3
|
+
const PUPPET_KEYWORDS = {
|
|
4
|
+
keyword: "and case default else elsif false if in import enherits node or true undef unless main settings $string ",
|
|
5
|
+
literal: "alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",
|
|
6
|
+
built_in: "architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"
|
|
7
|
+
};
|
|
8
|
+
const COMMENT = hljs.COMMENT("#", "$");
|
|
9
|
+
const IDENT_RE = "([A-Za-z_]|::)(\\w|::)*";
|
|
10
|
+
const TITLE = hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE });
|
|
11
|
+
const VARIABLE = {
|
|
12
|
+
className: "variable",
|
|
13
|
+
begin: "\\$" + IDENT_RE
|
|
14
|
+
};
|
|
15
|
+
const STRING = {
|
|
16
|
+
className: "string",
|
|
17
|
+
contains: [hljs.BACKSLASH_ESCAPE, VARIABLE],
|
|
18
|
+
variants: [{
|
|
19
|
+
begin: /'/,
|
|
20
|
+
end: /'/
|
|
21
|
+
}, {
|
|
22
|
+
begin: /"/,
|
|
23
|
+
end: /"/
|
|
24
|
+
}]
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
name: "Puppet",
|
|
28
|
+
aliases: ["pp"],
|
|
29
|
+
contains: [
|
|
30
|
+
COMMENT,
|
|
31
|
+
VARIABLE,
|
|
32
|
+
STRING,
|
|
33
|
+
{
|
|
34
|
+
beginKeywords: "class",
|
|
35
|
+
end: "\\{|;",
|
|
36
|
+
illegal: /=/,
|
|
37
|
+
contains: [TITLE, COMMENT]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
beginKeywords: "define",
|
|
41
|
+
end: /\{/,
|
|
42
|
+
contains: [{
|
|
43
|
+
className: "section",
|
|
44
|
+
begin: hljs.IDENT_RE,
|
|
45
|
+
endsParent: true
|
|
46
|
+
}]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
begin: hljs.IDENT_RE + "\\s+\\{",
|
|
50
|
+
returnBegin: true,
|
|
51
|
+
end: /\S/,
|
|
52
|
+
contains: [{
|
|
53
|
+
className: "keyword",
|
|
54
|
+
begin: hljs.IDENT_RE,
|
|
55
|
+
relevance: .2
|
|
56
|
+
}, {
|
|
57
|
+
begin: /\{/,
|
|
58
|
+
end: /\}/,
|
|
59
|
+
keywords: PUPPET_KEYWORDS,
|
|
60
|
+
relevance: 0,
|
|
61
|
+
contains: [
|
|
62
|
+
STRING,
|
|
63
|
+
COMMENT,
|
|
64
|
+
{
|
|
65
|
+
begin: "[a-zA-Z_]+\\s*=>",
|
|
66
|
+
returnBegin: true,
|
|
67
|
+
end: "=>",
|
|
68
|
+
contains: [{
|
|
69
|
+
className: "attr",
|
|
70
|
+
begin: hljs.IDENT_RE
|
|
71
|
+
}]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
className: "number",
|
|
75
|
+
begin: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",
|
|
76
|
+
relevance: 0
|
|
77
|
+
},
|
|
78
|
+
VARIABLE
|
|
79
|
+
]
|
|
80
|
+
}],
|
|
81
|
+
relevance: 0
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { puppet as default };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/purebasic.js
|
|
2
|
+
function purebasic(hljs) {
|
|
3
|
+
return {
|
|
4
|
+
name: "PureBASIC",
|
|
5
|
+
aliases: ["pb", "pbi"],
|
|
6
|
+
keywords: "Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",
|
|
7
|
+
contains: [
|
|
8
|
+
hljs.COMMENT(";", "$", { relevance: 0 }),
|
|
9
|
+
{
|
|
10
|
+
className: "function",
|
|
11
|
+
begin: "\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",
|
|
12
|
+
end: "\\(",
|
|
13
|
+
excludeEnd: true,
|
|
14
|
+
returnBegin: true,
|
|
15
|
+
contains: [
|
|
16
|
+
{
|
|
17
|
+
className: "keyword",
|
|
18
|
+
begin: "(Procedure|Declare)(C|CDLL|DLL)?",
|
|
19
|
+
excludeEnd: true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
className: "type",
|
|
23
|
+
begin: "\\.\\w*"
|
|
24
|
+
},
|
|
25
|
+
hljs.UNDERSCORE_TITLE_MODE
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
className: "string",
|
|
30
|
+
begin: "(~)?\"",
|
|
31
|
+
end: "\"",
|
|
32
|
+
illegal: "\\n"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
className: "symbol",
|
|
36
|
+
begin: "#[a-zA-Z_]\\w*\\$?"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { purebasic as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/python-repl.js
|
|
2
|
+
function pythonRepl(hljs) {
|
|
3
|
+
return {
|
|
4
|
+
aliases: ["pycon"],
|
|
5
|
+
contains: [{
|
|
6
|
+
className: "meta.prompt",
|
|
7
|
+
starts: {
|
|
8
|
+
end: / |$/,
|
|
9
|
+
starts: {
|
|
10
|
+
end: "$",
|
|
11
|
+
subLanguage: "python"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
variants: [{ begin: /^>>>(?=[ ]|$)/ }, { begin: /^\.\.\.(?=[ ]|$)/ }]
|
|
15
|
+
}]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { pythonRepl as default };
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/python.js
|
|
2
|
+
function python(hljs) {
|
|
3
|
+
const regex = hljs.regex;
|
|
4
|
+
const IDENT_RE = /[\p{XID_Start}_]\p{XID_Continue}*/u;
|
|
5
|
+
const RESERVED_WORDS = [
|
|
6
|
+
"and",
|
|
7
|
+
"as",
|
|
8
|
+
"assert",
|
|
9
|
+
"async",
|
|
10
|
+
"await",
|
|
11
|
+
"break",
|
|
12
|
+
"case",
|
|
13
|
+
"class",
|
|
14
|
+
"continue",
|
|
15
|
+
"def",
|
|
16
|
+
"del",
|
|
17
|
+
"elif",
|
|
18
|
+
"else",
|
|
19
|
+
"except",
|
|
20
|
+
"finally",
|
|
21
|
+
"for",
|
|
22
|
+
"from",
|
|
23
|
+
"global",
|
|
24
|
+
"if",
|
|
25
|
+
"import",
|
|
26
|
+
"in",
|
|
27
|
+
"is",
|
|
28
|
+
"lambda",
|
|
29
|
+
"match",
|
|
30
|
+
"nonlocal|10",
|
|
31
|
+
"not",
|
|
32
|
+
"or",
|
|
33
|
+
"pass",
|
|
34
|
+
"raise",
|
|
35
|
+
"return",
|
|
36
|
+
"try",
|
|
37
|
+
"while",
|
|
38
|
+
"with",
|
|
39
|
+
"yield"
|
|
40
|
+
];
|
|
41
|
+
const KEYWORDS = {
|
|
42
|
+
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
43
|
+
keyword: RESERVED_WORDS,
|
|
44
|
+
built_in: [
|
|
45
|
+
"__import__",
|
|
46
|
+
"abs",
|
|
47
|
+
"all",
|
|
48
|
+
"any",
|
|
49
|
+
"ascii",
|
|
50
|
+
"bin",
|
|
51
|
+
"bool",
|
|
52
|
+
"breakpoint",
|
|
53
|
+
"bytearray",
|
|
54
|
+
"bytes",
|
|
55
|
+
"callable",
|
|
56
|
+
"chr",
|
|
57
|
+
"classmethod",
|
|
58
|
+
"compile",
|
|
59
|
+
"complex",
|
|
60
|
+
"delattr",
|
|
61
|
+
"dict",
|
|
62
|
+
"dir",
|
|
63
|
+
"divmod",
|
|
64
|
+
"enumerate",
|
|
65
|
+
"eval",
|
|
66
|
+
"exec",
|
|
67
|
+
"filter",
|
|
68
|
+
"float",
|
|
69
|
+
"format",
|
|
70
|
+
"frozenset",
|
|
71
|
+
"getattr",
|
|
72
|
+
"globals",
|
|
73
|
+
"hasattr",
|
|
74
|
+
"hash",
|
|
75
|
+
"help",
|
|
76
|
+
"hex",
|
|
77
|
+
"id",
|
|
78
|
+
"input",
|
|
79
|
+
"int",
|
|
80
|
+
"isinstance",
|
|
81
|
+
"issubclass",
|
|
82
|
+
"iter",
|
|
83
|
+
"len",
|
|
84
|
+
"list",
|
|
85
|
+
"locals",
|
|
86
|
+
"map",
|
|
87
|
+
"max",
|
|
88
|
+
"memoryview",
|
|
89
|
+
"min",
|
|
90
|
+
"next",
|
|
91
|
+
"object",
|
|
92
|
+
"oct",
|
|
93
|
+
"open",
|
|
94
|
+
"ord",
|
|
95
|
+
"pow",
|
|
96
|
+
"print",
|
|
97
|
+
"property",
|
|
98
|
+
"range",
|
|
99
|
+
"repr",
|
|
100
|
+
"reversed",
|
|
101
|
+
"round",
|
|
102
|
+
"set",
|
|
103
|
+
"setattr",
|
|
104
|
+
"slice",
|
|
105
|
+
"sorted",
|
|
106
|
+
"staticmethod",
|
|
107
|
+
"str",
|
|
108
|
+
"sum",
|
|
109
|
+
"super",
|
|
110
|
+
"tuple",
|
|
111
|
+
"type",
|
|
112
|
+
"vars",
|
|
113
|
+
"zip"
|
|
114
|
+
],
|
|
115
|
+
literal: [
|
|
116
|
+
"__debug__",
|
|
117
|
+
"Ellipsis",
|
|
118
|
+
"False",
|
|
119
|
+
"None",
|
|
120
|
+
"NotImplemented",
|
|
121
|
+
"True"
|
|
122
|
+
],
|
|
123
|
+
type: [
|
|
124
|
+
"Any",
|
|
125
|
+
"Callable",
|
|
126
|
+
"Coroutine",
|
|
127
|
+
"Dict",
|
|
128
|
+
"List",
|
|
129
|
+
"Literal",
|
|
130
|
+
"Generic",
|
|
131
|
+
"Optional",
|
|
132
|
+
"Sequence",
|
|
133
|
+
"Set",
|
|
134
|
+
"Tuple",
|
|
135
|
+
"Type",
|
|
136
|
+
"Union"
|
|
137
|
+
]
|
|
138
|
+
};
|
|
139
|
+
const PROMPT = {
|
|
140
|
+
className: "meta",
|
|
141
|
+
begin: /^(>>>|\.\.\.) /
|
|
142
|
+
};
|
|
143
|
+
const SUBST = {
|
|
144
|
+
className: "subst",
|
|
145
|
+
begin: /\{/,
|
|
146
|
+
end: /\}/,
|
|
147
|
+
keywords: KEYWORDS,
|
|
148
|
+
illegal: /#/
|
|
149
|
+
};
|
|
150
|
+
const LITERAL_BRACKET = {
|
|
151
|
+
begin: /\{\{/,
|
|
152
|
+
relevance: 0
|
|
153
|
+
};
|
|
154
|
+
const STRING = {
|
|
155
|
+
className: "string",
|
|
156
|
+
contains: [hljs.BACKSLASH_ESCAPE],
|
|
157
|
+
variants: [
|
|
158
|
+
{
|
|
159
|
+
begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,
|
|
160
|
+
end: /'''/,
|
|
161
|
+
contains: [hljs.BACKSLASH_ESCAPE, PROMPT],
|
|
162
|
+
relevance: 10
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,
|
|
166
|
+
end: /"""/,
|
|
167
|
+
contains: [hljs.BACKSLASH_ESCAPE, PROMPT],
|
|
168
|
+
relevance: 10
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
begin: /([fF][rR]|[rR][fF]|[fF])'''/,
|
|
172
|
+
end: /'''/,
|
|
173
|
+
contains: [
|
|
174
|
+
hljs.BACKSLASH_ESCAPE,
|
|
175
|
+
PROMPT,
|
|
176
|
+
LITERAL_BRACKET,
|
|
177
|
+
SUBST
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
begin: /([fF][rR]|[rR][fF]|[fF])"""/,
|
|
182
|
+
end: /"""/,
|
|
183
|
+
contains: [
|
|
184
|
+
hljs.BACKSLASH_ESCAPE,
|
|
185
|
+
PROMPT,
|
|
186
|
+
LITERAL_BRACKET,
|
|
187
|
+
SUBST
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
begin: /([uU]|[rR])'/,
|
|
192
|
+
end: /'/,
|
|
193
|
+
relevance: 10
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
begin: /([uU]|[rR])"/,
|
|
197
|
+
end: /"/,
|
|
198
|
+
relevance: 10
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
begin: /([bB]|[bB][rR]|[rR][bB])'/,
|
|
202
|
+
end: /'/
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
begin: /([bB]|[bB][rR]|[rR][bB])"/,
|
|
206
|
+
end: /"/
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
begin: /([fF][rR]|[rR][fF]|[fF])'/,
|
|
210
|
+
end: /'/,
|
|
211
|
+
contains: [
|
|
212
|
+
hljs.BACKSLASH_ESCAPE,
|
|
213
|
+
LITERAL_BRACKET,
|
|
214
|
+
SUBST
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
begin: /([fF][rR]|[rR][fF]|[fF])"/,
|
|
219
|
+
end: /"/,
|
|
220
|
+
contains: [
|
|
221
|
+
hljs.BACKSLASH_ESCAPE,
|
|
222
|
+
LITERAL_BRACKET,
|
|
223
|
+
SUBST
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
hljs.APOS_STRING_MODE,
|
|
227
|
+
hljs.QUOTE_STRING_MODE
|
|
228
|
+
]
|
|
229
|
+
};
|
|
230
|
+
const digitpart = "[0-9](_?[0-9])*";
|
|
231
|
+
const pointfloat = `(\\b(${digitpart}))?\\.(${digitpart})|\\b(${digitpart})\\.`;
|
|
232
|
+
const lookahead = `\\b|${RESERVED_WORDS.join("|")}`;
|
|
233
|
+
const NUMBER = {
|
|
234
|
+
className: "number",
|
|
235
|
+
relevance: 0,
|
|
236
|
+
variants: [
|
|
237
|
+
{ begin: `(\\b(${digitpart})|(${pointfloat}))[eE][+-]?(${digitpart})[jJ]?(?=${lookahead})` },
|
|
238
|
+
{ begin: `(${pointfloat})[jJ]?` },
|
|
239
|
+
{ begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${lookahead})` },
|
|
240
|
+
{ begin: `\\b0[bB](_?[01])+[lL]?(?=${lookahead})` },
|
|
241
|
+
{ begin: `\\b0[oO](_?[0-7])+[lL]?(?=${lookahead})` },
|
|
242
|
+
{ begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${lookahead})` },
|
|
243
|
+
{ begin: `\\b(${digitpart})[jJ](?=${lookahead})` }
|
|
244
|
+
]
|
|
245
|
+
};
|
|
246
|
+
const COMMENT_TYPE = {
|
|
247
|
+
className: "comment",
|
|
248
|
+
begin: regex.lookahead(/# type:/),
|
|
249
|
+
end: /$/,
|
|
250
|
+
keywords: KEYWORDS,
|
|
251
|
+
contains: [{ begin: /# type:/ }, {
|
|
252
|
+
begin: /#/,
|
|
253
|
+
end: /\b\B/,
|
|
254
|
+
endsWithParent: true
|
|
255
|
+
}]
|
|
256
|
+
};
|
|
257
|
+
const PARAMS = {
|
|
258
|
+
className: "params",
|
|
259
|
+
variants: [{
|
|
260
|
+
className: "",
|
|
261
|
+
begin: /\(\s*\)/,
|
|
262
|
+
skip: true
|
|
263
|
+
}, {
|
|
264
|
+
begin: /\(/,
|
|
265
|
+
end: /\)/,
|
|
266
|
+
excludeBegin: true,
|
|
267
|
+
excludeEnd: true,
|
|
268
|
+
keywords: KEYWORDS,
|
|
269
|
+
contains: [
|
|
270
|
+
"self",
|
|
271
|
+
PROMPT,
|
|
272
|
+
NUMBER,
|
|
273
|
+
STRING,
|
|
274
|
+
hljs.HASH_COMMENT_MODE
|
|
275
|
+
]
|
|
276
|
+
}]
|
|
277
|
+
};
|
|
278
|
+
SUBST.contains = [
|
|
279
|
+
STRING,
|
|
280
|
+
NUMBER,
|
|
281
|
+
PROMPT
|
|
282
|
+
];
|
|
283
|
+
return {
|
|
284
|
+
name: "Python",
|
|
285
|
+
aliases: [
|
|
286
|
+
"py",
|
|
287
|
+
"gyp",
|
|
288
|
+
"ipython"
|
|
289
|
+
],
|
|
290
|
+
unicodeRegex: true,
|
|
291
|
+
keywords: KEYWORDS,
|
|
292
|
+
illegal: /(<\/|\?)|=>/,
|
|
293
|
+
contains: [
|
|
294
|
+
PROMPT,
|
|
295
|
+
NUMBER,
|
|
296
|
+
{
|
|
297
|
+
scope: "variable.language",
|
|
298
|
+
match: /\bself\b/
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
beginKeywords: "if",
|
|
302
|
+
relevance: 0
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
match: /\bor\b/,
|
|
306
|
+
scope: "keyword"
|
|
307
|
+
},
|
|
308
|
+
STRING,
|
|
309
|
+
COMMENT_TYPE,
|
|
310
|
+
hljs.HASH_COMMENT_MODE,
|
|
311
|
+
{
|
|
312
|
+
match: [
|
|
313
|
+
/\bdef/,
|
|
314
|
+
/\s+/,
|
|
315
|
+
IDENT_RE
|
|
316
|
+
],
|
|
317
|
+
scope: {
|
|
318
|
+
1: "keyword",
|
|
319
|
+
3: "title.function"
|
|
320
|
+
},
|
|
321
|
+
contains: [PARAMS]
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
variants: [{ match: [
|
|
325
|
+
/\bclass/,
|
|
326
|
+
/\s+/,
|
|
327
|
+
IDENT_RE,
|
|
328
|
+
/\s*/,
|
|
329
|
+
/\(\s*/,
|
|
330
|
+
IDENT_RE,
|
|
331
|
+
/\s*\)/
|
|
332
|
+
] }, { match: [
|
|
333
|
+
/\bclass/,
|
|
334
|
+
/\s+/,
|
|
335
|
+
IDENT_RE
|
|
336
|
+
] }],
|
|
337
|
+
scope: {
|
|
338
|
+
1: "keyword",
|
|
339
|
+
3: "title.class",
|
|
340
|
+
6: "title.class.inherited"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
className: "meta",
|
|
345
|
+
begin: /^[\t ]*@/,
|
|
346
|
+
end: /(?=#)|$/,
|
|
347
|
+
contains: [
|
|
348
|
+
NUMBER,
|
|
349
|
+
PARAMS,
|
|
350
|
+
STRING
|
|
351
|
+
]
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
//#endregion
|
|
357
|
+
export { python as default };
|
package/vue/chunks/q.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/q.js
|
|
2
|
+
function q(hljs) {
|
|
3
|
+
return {
|
|
4
|
+
name: "Q",
|
|
5
|
+
aliases: ["k", "kdb"],
|
|
6
|
+
keywords: {
|
|
7
|
+
$pattern: /(`?)[A-Za-z0-9_]+\b/,
|
|
8
|
+
keyword: "do while select delete by update from",
|
|
9
|
+
literal: "0b 1b",
|
|
10
|
+
built_in: "neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",
|
|
11
|
+
type: "`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"
|
|
12
|
+
},
|
|
13
|
+
contains: [
|
|
14
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
15
|
+
hljs.QUOTE_STRING_MODE,
|
|
16
|
+
hljs.C_NUMBER_MODE
|
|
17
|
+
]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { q as default };
|