@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,208 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/powershell.js
|
|
2
|
+
function powershell(hljs) {
|
|
3
|
+
const TYPES = [
|
|
4
|
+
"string",
|
|
5
|
+
"char",
|
|
6
|
+
"byte",
|
|
7
|
+
"int",
|
|
8
|
+
"long",
|
|
9
|
+
"bool",
|
|
10
|
+
"decimal",
|
|
11
|
+
"single",
|
|
12
|
+
"double",
|
|
13
|
+
"DateTime",
|
|
14
|
+
"xml",
|
|
15
|
+
"array",
|
|
16
|
+
"hashtable",
|
|
17
|
+
"void"
|
|
18
|
+
];
|
|
19
|
+
const VALID_VERBS = "Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where";
|
|
20
|
+
const COMPARISON_OPERATORS = "-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor";
|
|
21
|
+
const KEYWORDS = {
|
|
22
|
+
$pattern: /-?[A-z\.\-]+\b/,
|
|
23
|
+
keyword: "if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",
|
|
24
|
+
built_in: "ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"
|
|
25
|
+
};
|
|
26
|
+
const TITLE_NAME_RE = /\w[\w\d]*((-)[\w\d]+)*/;
|
|
27
|
+
const BACKTICK_ESCAPE = {
|
|
28
|
+
begin: "`[\\s\\S]",
|
|
29
|
+
relevance: 0
|
|
30
|
+
};
|
|
31
|
+
const VAR = {
|
|
32
|
+
className: "variable",
|
|
33
|
+
variants: [
|
|
34
|
+
{ begin: /\$\B/ },
|
|
35
|
+
{
|
|
36
|
+
className: "keyword",
|
|
37
|
+
begin: /\$this/
|
|
38
|
+
},
|
|
39
|
+
{ begin: /\$[\w\d][\w\d_:]*/ }
|
|
40
|
+
]
|
|
41
|
+
};
|
|
42
|
+
const LITERAL = {
|
|
43
|
+
className: "literal",
|
|
44
|
+
begin: /\$(null|true|false)\b/
|
|
45
|
+
};
|
|
46
|
+
const QUOTE_STRING = {
|
|
47
|
+
className: "string",
|
|
48
|
+
variants: [{
|
|
49
|
+
begin: /"/,
|
|
50
|
+
end: /"/
|
|
51
|
+
}, {
|
|
52
|
+
begin: /@"/,
|
|
53
|
+
end: /^"@/
|
|
54
|
+
}],
|
|
55
|
+
contains: [
|
|
56
|
+
BACKTICK_ESCAPE,
|
|
57
|
+
VAR,
|
|
58
|
+
{
|
|
59
|
+
className: "variable",
|
|
60
|
+
begin: /\$[A-z]/,
|
|
61
|
+
end: /[^A-z]/
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
};
|
|
65
|
+
const APOS_STRING = {
|
|
66
|
+
className: "string",
|
|
67
|
+
variants: [{
|
|
68
|
+
begin: /'/,
|
|
69
|
+
end: /'/
|
|
70
|
+
}, {
|
|
71
|
+
begin: /@'/,
|
|
72
|
+
end: /^'@/
|
|
73
|
+
}]
|
|
74
|
+
};
|
|
75
|
+
const PS_COMMENT = hljs.inherit(hljs.COMMENT(null, null), {
|
|
76
|
+
variants: [{
|
|
77
|
+
begin: /#/,
|
|
78
|
+
end: /$/
|
|
79
|
+
}, {
|
|
80
|
+
begin: /<#/,
|
|
81
|
+
end: /#>/
|
|
82
|
+
}],
|
|
83
|
+
contains: [{
|
|
84
|
+
className: "doctag",
|
|
85
|
+
variants: [{ begin: /\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/ }, { begin: /\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/ }]
|
|
86
|
+
}]
|
|
87
|
+
});
|
|
88
|
+
const CMDLETS = {
|
|
89
|
+
className: "built_in",
|
|
90
|
+
variants: [{ begin: "(".concat(VALID_VERBS, ")+(-)[\\w\\d]+") }]
|
|
91
|
+
};
|
|
92
|
+
const PS_CLASS = {
|
|
93
|
+
className: "class",
|
|
94
|
+
beginKeywords: "class enum",
|
|
95
|
+
end: /\s*[{]/,
|
|
96
|
+
excludeEnd: true,
|
|
97
|
+
relevance: 0,
|
|
98
|
+
contains: [hljs.TITLE_MODE]
|
|
99
|
+
};
|
|
100
|
+
const PS_FUNCTION = {
|
|
101
|
+
className: "function",
|
|
102
|
+
begin: /function\s+/,
|
|
103
|
+
end: /\s*\{|$/,
|
|
104
|
+
excludeEnd: true,
|
|
105
|
+
returnBegin: true,
|
|
106
|
+
relevance: 0,
|
|
107
|
+
contains: [
|
|
108
|
+
{
|
|
109
|
+
begin: "function",
|
|
110
|
+
relevance: 0,
|
|
111
|
+
className: "keyword"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
className: "title",
|
|
115
|
+
begin: TITLE_NAME_RE,
|
|
116
|
+
relevance: 0
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
begin: /\(/,
|
|
120
|
+
end: /\)/,
|
|
121
|
+
className: "params",
|
|
122
|
+
relevance: 0,
|
|
123
|
+
contains: [VAR]
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
};
|
|
127
|
+
const PS_USING = {
|
|
128
|
+
begin: /using\s/,
|
|
129
|
+
end: /$/,
|
|
130
|
+
returnBegin: true,
|
|
131
|
+
contains: [
|
|
132
|
+
QUOTE_STRING,
|
|
133
|
+
APOS_STRING,
|
|
134
|
+
{
|
|
135
|
+
className: "keyword",
|
|
136
|
+
begin: /(using|assembly|command|module|namespace|type)/
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
};
|
|
140
|
+
const PS_ARGUMENTS = { variants: [{
|
|
141
|
+
className: "operator",
|
|
142
|
+
begin: "(".concat(COMPARISON_OPERATORS, ")\\b")
|
|
143
|
+
}, {
|
|
144
|
+
className: "literal",
|
|
145
|
+
begin: /(-){1,2}[\w\d-]+/,
|
|
146
|
+
relevance: 0
|
|
147
|
+
}] };
|
|
148
|
+
const HASH_SIGNS = {
|
|
149
|
+
className: "selector-tag",
|
|
150
|
+
begin: /@\B/,
|
|
151
|
+
relevance: 0
|
|
152
|
+
};
|
|
153
|
+
const PS_METHODS = {
|
|
154
|
+
className: "function",
|
|
155
|
+
begin: /\[.*\]\s*[\w]+[ ]??\(/,
|
|
156
|
+
end: /$/,
|
|
157
|
+
returnBegin: true,
|
|
158
|
+
relevance: 0,
|
|
159
|
+
contains: [{
|
|
160
|
+
className: "keyword",
|
|
161
|
+
begin: "(".concat(KEYWORDS.keyword.toString().replace(/\s/g, "|"), ")\\b"),
|
|
162
|
+
endsParent: true,
|
|
163
|
+
relevance: 0
|
|
164
|
+
}, hljs.inherit(hljs.TITLE_MODE, { endsParent: true })]
|
|
165
|
+
};
|
|
166
|
+
const GENTLEMANS_SET = [
|
|
167
|
+
PS_METHODS,
|
|
168
|
+
PS_COMMENT,
|
|
169
|
+
BACKTICK_ESCAPE,
|
|
170
|
+
hljs.NUMBER_MODE,
|
|
171
|
+
QUOTE_STRING,
|
|
172
|
+
APOS_STRING,
|
|
173
|
+
CMDLETS,
|
|
174
|
+
VAR,
|
|
175
|
+
LITERAL,
|
|
176
|
+
HASH_SIGNS
|
|
177
|
+
];
|
|
178
|
+
const PS_TYPE = {
|
|
179
|
+
begin: /\[/,
|
|
180
|
+
end: /\]/,
|
|
181
|
+
excludeBegin: true,
|
|
182
|
+
excludeEnd: true,
|
|
183
|
+
relevance: 0,
|
|
184
|
+
contains: [].concat("self", GENTLEMANS_SET, {
|
|
185
|
+
begin: "(" + TYPES.join("|") + ")",
|
|
186
|
+
className: "built_in",
|
|
187
|
+
relevance: 0
|
|
188
|
+
}, {
|
|
189
|
+
className: "type",
|
|
190
|
+
begin: /[\.\w\d]+/,
|
|
191
|
+
relevance: 0
|
|
192
|
+
})
|
|
193
|
+
};
|
|
194
|
+
PS_METHODS.contains.unshift(PS_TYPE);
|
|
195
|
+
return {
|
|
196
|
+
name: "PowerShell",
|
|
197
|
+
aliases: [
|
|
198
|
+
"pwsh",
|
|
199
|
+
"ps",
|
|
200
|
+
"ps1"
|
|
201
|
+
],
|
|
202
|
+
case_insensitive: true,
|
|
203
|
+
keywords: KEYWORDS,
|
|
204
|
+
contains: GENTLEMANS_SET.concat(PS_CLASS, PS_FUNCTION, PS_USING, PS_ARGUMENTS, PS_TYPE)
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
//#endregion
|
|
208
|
+
export { powershell as default };
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/processing.js
|
|
2
|
+
function processing(hljs) {
|
|
3
|
+
const regex = hljs.regex;
|
|
4
|
+
const BUILT_INS = [
|
|
5
|
+
"displayHeight",
|
|
6
|
+
"displayWidth",
|
|
7
|
+
"mouseY",
|
|
8
|
+
"mouseX",
|
|
9
|
+
"mousePressed",
|
|
10
|
+
"pmouseX",
|
|
11
|
+
"pmouseY",
|
|
12
|
+
"key",
|
|
13
|
+
"keyCode",
|
|
14
|
+
"pixels",
|
|
15
|
+
"focused",
|
|
16
|
+
"frameCount",
|
|
17
|
+
"frameRate",
|
|
18
|
+
"height",
|
|
19
|
+
"width",
|
|
20
|
+
"size",
|
|
21
|
+
"createGraphics",
|
|
22
|
+
"beginDraw",
|
|
23
|
+
"createShape",
|
|
24
|
+
"loadShape",
|
|
25
|
+
"PShape",
|
|
26
|
+
"arc",
|
|
27
|
+
"ellipse",
|
|
28
|
+
"line",
|
|
29
|
+
"point",
|
|
30
|
+
"quad",
|
|
31
|
+
"rect",
|
|
32
|
+
"triangle",
|
|
33
|
+
"bezier",
|
|
34
|
+
"bezierDetail",
|
|
35
|
+
"bezierPoint",
|
|
36
|
+
"bezierTangent",
|
|
37
|
+
"curve",
|
|
38
|
+
"curveDetail",
|
|
39
|
+
"curvePoint",
|
|
40
|
+
"curveTangent",
|
|
41
|
+
"curveTightness",
|
|
42
|
+
"shape",
|
|
43
|
+
"shapeMode",
|
|
44
|
+
"beginContour",
|
|
45
|
+
"beginShape",
|
|
46
|
+
"bezierVertex",
|
|
47
|
+
"curveVertex",
|
|
48
|
+
"endContour",
|
|
49
|
+
"endShape",
|
|
50
|
+
"quadraticVertex",
|
|
51
|
+
"vertex",
|
|
52
|
+
"ellipseMode",
|
|
53
|
+
"noSmooth",
|
|
54
|
+
"rectMode",
|
|
55
|
+
"smooth",
|
|
56
|
+
"strokeCap",
|
|
57
|
+
"strokeJoin",
|
|
58
|
+
"strokeWeight",
|
|
59
|
+
"mouseClicked",
|
|
60
|
+
"mouseDragged",
|
|
61
|
+
"mouseMoved",
|
|
62
|
+
"mousePressed",
|
|
63
|
+
"mouseReleased",
|
|
64
|
+
"mouseWheel",
|
|
65
|
+
"keyPressed",
|
|
66
|
+
"keyPressedkeyReleased",
|
|
67
|
+
"keyTyped",
|
|
68
|
+
"print",
|
|
69
|
+
"println",
|
|
70
|
+
"save",
|
|
71
|
+
"saveFrame",
|
|
72
|
+
"day",
|
|
73
|
+
"hour",
|
|
74
|
+
"millis",
|
|
75
|
+
"minute",
|
|
76
|
+
"month",
|
|
77
|
+
"second",
|
|
78
|
+
"year",
|
|
79
|
+
"background",
|
|
80
|
+
"clear",
|
|
81
|
+
"colorMode",
|
|
82
|
+
"fill",
|
|
83
|
+
"noFill",
|
|
84
|
+
"noStroke",
|
|
85
|
+
"stroke",
|
|
86
|
+
"alpha",
|
|
87
|
+
"blue",
|
|
88
|
+
"brightness",
|
|
89
|
+
"color",
|
|
90
|
+
"green",
|
|
91
|
+
"hue",
|
|
92
|
+
"lerpColor",
|
|
93
|
+
"red",
|
|
94
|
+
"saturation",
|
|
95
|
+
"modelX",
|
|
96
|
+
"modelY",
|
|
97
|
+
"modelZ",
|
|
98
|
+
"screenX",
|
|
99
|
+
"screenY",
|
|
100
|
+
"screenZ",
|
|
101
|
+
"ambient",
|
|
102
|
+
"emissive",
|
|
103
|
+
"shininess",
|
|
104
|
+
"specular",
|
|
105
|
+
"add",
|
|
106
|
+
"createImage",
|
|
107
|
+
"beginCamera",
|
|
108
|
+
"camera",
|
|
109
|
+
"endCamera",
|
|
110
|
+
"frustum",
|
|
111
|
+
"ortho",
|
|
112
|
+
"perspective",
|
|
113
|
+
"printCamera",
|
|
114
|
+
"printProjection",
|
|
115
|
+
"cursor",
|
|
116
|
+
"frameRate",
|
|
117
|
+
"noCursor",
|
|
118
|
+
"exit",
|
|
119
|
+
"loop",
|
|
120
|
+
"noLoop",
|
|
121
|
+
"popStyle",
|
|
122
|
+
"pushStyle",
|
|
123
|
+
"redraw",
|
|
124
|
+
"binary",
|
|
125
|
+
"boolean",
|
|
126
|
+
"byte",
|
|
127
|
+
"char",
|
|
128
|
+
"float",
|
|
129
|
+
"hex",
|
|
130
|
+
"int",
|
|
131
|
+
"str",
|
|
132
|
+
"unbinary",
|
|
133
|
+
"unhex",
|
|
134
|
+
"join",
|
|
135
|
+
"match",
|
|
136
|
+
"matchAll",
|
|
137
|
+
"nf",
|
|
138
|
+
"nfc",
|
|
139
|
+
"nfp",
|
|
140
|
+
"nfs",
|
|
141
|
+
"split",
|
|
142
|
+
"splitTokens",
|
|
143
|
+
"trim",
|
|
144
|
+
"append",
|
|
145
|
+
"arrayCopy",
|
|
146
|
+
"concat",
|
|
147
|
+
"expand",
|
|
148
|
+
"reverse",
|
|
149
|
+
"shorten",
|
|
150
|
+
"sort",
|
|
151
|
+
"splice",
|
|
152
|
+
"subset",
|
|
153
|
+
"box",
|
|
154
|
+
"sphere",
|
|
155
|
+
"sphereDetail",
|
|
156
|
+
"createInput",
|
|
157
|
+
"createReader",
|
|
158
|
+
"loadBytes",
|
|
159
|
+
"loadJSONArray",
|
|
160
|
+
"loadJSONObject",
|
|
161
|
+
"loadStrings",
|
|
162
|
+
"loadTable",
|
|
163
|
+
"loadXML",
|
|
164
|
+
"open",
|
|
165
|
+
"parseXML",
|
|
166
|
+
"saveTable",
|
|
167
|
+
"selectFolder",
|
|
168
|
+
"selectInput",
|
|
169
|
+
"beginRaw",
|
|
170
|
+
"beginRecord",
|
|
171
|
+
"createOutput",
|
|
172
|
+
"createWriter",
|
|
173
|
+
"endRaw",
|
|
174
|
+
"endRecord",
|
|
175
|
+
"PrintWritersaveBytes",
|
|
176
|
+
"saveJSONArray",
|
|
177
|
+
"saveJSONObject",
|
|
178
|
+
"saveStream",
|
|
179
|
+
"saveStrings",
|
|
180
|
+
"saveXML",
|
|
181
|
+
"selectOutput",
|
|
182
|
+
"popMatrix",
|
|
183
|
+
"printMatrix",
|
|
184
|
+
"pushMatrix",
|
|
185
|
+
"resetMatrix",
|
|
186
|
+
"rotate",
|
|
187
|
+
"rotateX",
|
|
188
|
+
"rotateY",
|
|
189
|
+
"rotateZ",
|
|
190
|
+
"scale",
|
|
191
|
+
"shearX",
|
|
192
|
+
"shearY",
|
|
193
|
+
"translate",
|
|
194
|
+
"ambientLight",
|
|
195
|
+
"directionalLight",
|
|
196
|
+
"lightFalloff",
|
|
197
|
+
"lights",
|
|
198
|
+
"lightSpecular",
|
|
199
|
+
"noLights",
|
|
200
|
+
"normal",
|
|
201
|
+
"pointLight",
|
|
202
|
+
"spotLight",
|
|
203
|
+
"image",
|
|
204
|
+
"imageMode",
|
|
205
|
+
"loadImage",
|
|
206
|
+
"noTint",
|
|
207
|
+
"requestImage",
|
|
208
|
+
"tint",
|
|
209
|
+
"texture",
|
|
210
|
+
"textureMode",
|
|
211
|
+
"textureWrap",
|
|
212
|
+
"blend",
|
|
213
|
+
"copy",
|
|
214
|
+
"filter",
|
|
215
|
+
"get",
|
|
216
|
+
"loadPixels",
|
|
217
|
+
"set",
|
|
218
|
+
"updatePixels",
|
|
219
|
+
"blendMode",
|
|
220
|
+
"loadShader",
|
|
221
|
+
"PShaderresetShader",
|
|
222
|
+
"shader",
|
|
223
|
+
"createFont",
|
|
224
|
+
"loadFont",
|
|
225
|
+
"text",
|
|
226
|
+
"textFont",
|
|
227
|
+
"textAlign",
|
|
228
|
+
"textLeading",
|
|
229
|
+
"textMode",
|
|
230
|
+
"textSize",
|
|
231
|
+
"textWidth",
|
|
232
|
+
"textAscent",
|
|
233
|
+
"textDescent",
|
|
234
|
+
"abs",
|
|
235
|
+
"ceil",
|
|
236
|
+
"constrain",
|
|
237
|
+
"dist",
|
|
238
|
+
"exp",
|
|
239
|
+
"floor",
|
|
240
|
+
"lerp",
|
|
241
|
+
"log",
|
|
242
|
+
"mag",
|
|
243
|
+
"map",
|
|
244
|
+
"max",
|
|
245
|
+
"min",
|
|
246
|
+
"norm",
|
|
247
|
+
"pow",
|
|
248
|
+
"round",
|
|
249
|
+
"sq",
|
|
250
|
+
"sqrt",
|
|
251
|
+
"acos",
|
|
252
|
+
"asin",
|
|
253
|
+
"atan",
|
|
254
|
+
"atan2",
|
|
255
|
+
"cos",
|
|
256
|
+
"degrees",
|
|
257
|
+
"radians",
|
|
258
|
+
"sin",
|
|
259
|
+
"tan",
|
|
260
|
+
"noise",
|
|
261
|
+
"noiseDetail",
|
|
262
|
+
"noiseSeed",
|
|
263
|
+
"random",
|
|
264
|
+
"randomGaussian",
|
|
265
|
+
"randomSeed"
|
|
266
|
+
];
|
|
267
|
+
const IDENT = hljs.IDENT_RE;
|
|
268
|
+
const FUNC_NAME = { variants: [{
|
|
269
|
+
match: regex.concat(regex.either(...BUILT_INS), regex.lookahead(/\s*\(/)),
|
|
270
|
+
className: "built_in"
|
|
271
|
+
}, {
|
|
272
|
+
relevance: 0,
|
|
273
|
+
match: regex.concat(/\b(?!for|if|while)/, IDENT, regex.lookahead(/\s*\(/)),
|
|
274
|
+
className: "title.function"
|
|
275
|
+
}] };
|
|
276
|
+
const NEW_CLASS = {
|
|
277
|
+
match: [/new\s+/, IDENT],
|
|
278
|
+
className: {
|
|
279
|
+
1: "keyword",
|
|
280
|
+
2: "class.title"
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
const PROPERTY = {
|
|
284
|
+
relevance: 0,
|
|
285
|
+
match: [/\./, IDENT],
|
|
286
|
+
className: { 2: "property" }
|
|
287
|
+
};
|
|
288
|
+
const CLASS = {
|
|
289
|
+
variants: [{ match: [
|
|
290
|
+
/class/,
|
|
291
|
+
/\s+/,
|
|
292
|
+
IDENT,
|
|
293
|
+
/\s+/,
|
|
294
|
+
/extends/,
|
|
295
|
+
/\s+/,
|
|
296
|
+
IDENT
|
|
297
|
+
] }, { match: [
|
|
298
|
+
/class/,
|
|
299
|
+
/\s+/,
|
|
300
|
+
IDENT
|
|
301
|
+
] }],
|
|
302
|
+
className: {
|
|
303
|
+
1: "keyword",
|
|
304
|
+
3: "title.class",
|
|
305
|
+
5: "keyword",
|
|
306
|
+
7: "title.class.inherited"
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
const TYPES = [
|
|
310
|
+
"boolean",
|
|
311
|
+
"byte",
|
|
312
|
+
"char",
|
|
313
|
+
"color",
|
|
314
|
+
"double",
|
|
315
|
+
"float",
|
|
316
|
+
"int",
|
|
317
|
+
"long",
|
|
318
|
+
"short"
|
|
319
|
+
];
|
|
320
|
+
const CLASSES = [
|
|
321
|
+
"BufferedReader",
|
|
322
|
+
"PVector",
|
|
323
|
+
"PFont",
|
|
324
|
+
"PImage",
|
|
325
|
+
"PGraphics",
|
|
326
|
+
"HashMap",
|
|
327
|
+
"String",
|
|
328
|
+
"Array",
|
|
329
|
+
"FloatDict",
|
|
330
|
+
"ArrayList",
|
|
331
|
+
"FloatList",
|
|
332
|
+
"IntDict",
|
|
333
|
+
"IntList",
|
|
334
|
+
"JSONArray",
|
|
335
|
+
"JSONObject",
|
|
336
|
+
"Object",
|
|
337
|
+
"StringDict",
|
|
338
|
+
"StringList",
|
|
339
|
+
"Table",
|
|
340
|
+
"TableRow",
|
|
341
|
+
"XML"
|
|
342
|
+
];
|
|
343
|
+
return {
|
|
344
|
+
name: "Processing",
|
|
345
|
+
aliases: ["pde"],
|
|
346
|
+
keywords: {
|
|
347
|
+
keyword: [...[
|
|
348
|
+
"abstract",
|
|
349
|
+
"assert",
|
|
350
|
+
"break",
|
|
351
|
+
"case",
|
|
352
|
+
"catch",
|
|
353
|
+
"const",
|
|
354
|
+
"continue",
|
|
355
|
+
"default",
|
|
356
|
+
"else",
|
|
357
|
+
"enum",
|
|
358
|
+
"final",
|
|
359
|
+
"finally",
|
|
360
|
+
"for",
|
|
361
|
+
"if",
|
|
362
|
+
"import",
|
|
363
|
+
"instanceof",
|
|
364
|
+
"long",
|
|
365
|
+
"native",
|
|
366
|
+
"new",
|
|
367
|
+
"package",
|
|
368
|
+
"private",
|
|
369
|
+
"private",
|
|
370
|
+
"protected",
|
|
371
|
+
"protected",
|
|
372
|
+
"public",
|
|
373
|
+
"public",
|
|
374
|
+
"return",
|
|
375
|
+
"static",
|
|
376
|
+
"strictfp",
|
|
377
|
+
"switch",
|
|
378
|
+
"synchronized",
|
|
379
|
+
"throw",
|
|
380
|
+
"throws",
|
|
381
|
+
"transient",
|
|
382
|
+
"try",
|
|
383
|
+
"void",
|
|
384
|
+
"volatile",
|
|
385
|
+
"while"
|
|
386
|
+
]],
|
|
387
|
+
literal: "P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",
|
|
388
|
+
title: "setup draw",
|
|
389
|
+
variable: "super this",
|
|
390
|
+
built_in: [...BUILT_INS, ...CLASSES],
|
|
391
|
+
type: TYPES
|
|
392
|
+
},
|
|
393
|
+
contains: [
|
|
394
|
+
CLASS,
|
|
395
|
+
NEW_CLASS,
|
|
396
|
+
FUNC_NAME,
|
|
397
|
+
PROPERTY,
|
|
398
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
399
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
400
|
+
hljs.APOS_STRING_MODE,
|
|
401
|
+
hljs.QUOTE_STRING_MODE,
|
|
402
|
+
hljs.C_NUMBER_MODE
|
|
403
|
+
]
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
//#endregion
|
|
407
|
+
export { processing as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/profile.js
|
|
2
|
+
function profile(hljs) {
|
|
3
|
+
return {
|
|
4
|
+
name: "Python profiler",
|
|
5
|
+
contains: [
|
|
6
|
+
hljs.C_NUMBER_MODE,
|
|
7
|
+
{
|
|
8
|
+
begin: "[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",
|
|
9
|
+
end: ":",
|
|
10
|
+
excludeEnd: true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
begin: "(ncalls|tottime|cumtime)",
|
|
14
|
+
end: "$",
|
|
15
|
+
keywords: "ncalls tottime|10 cumtime|10 filename",
|
|
16
|
+
relevance: 10
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
begin: "function calls",
|
|
20
|
+
end: "$",
|
|
21
|
+
contains: [hljs.C_NUMBER_MODE],
|
|
22
|
+
relevance: 10
|
|
23
|
+
},
|
|
24
|
+
hljs.APOS_STRING_MODE,
|
|
25
|
+
hljs.QUOTE_STRING_MODE,
|
|
26
|
+
{
|
|
27
|
+
className: "string",
|
|
28
|
+
begin: "\\(",
|
|
29
|
+
end: "\\)$",
|
|
30
|
+
excludeBegin: true,
|
|
31
|
+
excludeEnd: true,
|
|
32
|
+
relevance: 0
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { profile as default };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/prolog.js
|
|
2
|
+
function prolog(hljs) {
|
|
3
|
+
const ATOM = {
|
|
4
|
+
begin: /[a-z][A-Za-z0-9_]*/,
|
|
5
|
+
relevance: 0
|
|
6
|
+
};
|
|
7
|
+
const VAR = {
|
|
8
|
+
className: "symbol",
|
|
9
|
+
variants: [{ begin: /[A-Z][a-zA-Z0-9_]*/ }, { begin: /_[A-Za-z0-9_]*/ }],
|
|
10
|
+
relevance: 0
|
|
11
|
+
};
|
|
12
|
+
const PARENTED = {
|
|
13
|
+
begin: /\(/,
|
|
14
|
+
end: /\)/,
|
|
15
|
+
relevance: 0
|
|
16
|
+
};
|
|
17
|
+
const LIST = {
|
|
18
|
+
begin: /\[/,
|
|
19
|
+
end: /\]/
|
|
20
|
+
};
|
|
21
|
+
const LINE_COMMENT = {
|
|
22
|
+
className: "comment",
|
|
23
|
+
begin: /%/,
|
|
24
|
+
end: /$/,
|
|
25
|
+
contains: [hljs.PHRASAL_WORDS_MODE]
|
|
26
|
+
};
|
|
27
|
+
const BACKTICK_STRING = {
|
|
28
|
+
className: "string",
|
|
29
|
+
begin: /`/,
|
|
30
|
+
end: /`/,
|
|
31
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
|
32
|
+
};
|
|
33
|
+
const inner = [
|
|
34
|
+
ATOM,
|
|
35
|
+
VAR,
|
|
36
|
+
PARENTED,
|
|
37
|
+
{ begin: /:-/ },
|
|
38
|
+
LIST,
|
|
39
|
+
LINE_COMMENT,
|
|
40
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
41
|
+
hljs.QUOTE_STRING_MODE,
|
|
42
|
+
hljs.APOS_STRING_MODE,
|
|
43
|
+
BACKTICK_STRING,
|
|
44
|
+
{
|
|
45
|
+
className: "string",
|
|
46
|
+
begin: /0'(\\'|.)/
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
className: "string",
|
|
50
|
+
begin: /0'\\s/
|
|
51
|
+
},
|
|
52
|
+
hljs.C_NUMBER_MODE
|
|
53
|
+
];
|
|
54
|
+
PARENTED.contains = inner;
|
|
55
|
+
LIST.contains = inner;
|
|
56
|
+
return {
|
|
57
|
+
name: "Prolog",
|
|
58
|
+
contains: inner.concat([{ begin: /\.$/ }])
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { prolog as default };
|