@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,183 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/ada.js
|
|
2
|
+
/** @type LanguageFn */
|
|
3
|
+
function ada(hljs) {
|
|
4
|
+
const NUMBER_RE = "\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)";
|
|
5
|
+
const ID_REGEX = "[A-Za-z](_?[A-Za-z0-9.])*";
|
|
6
|
+
const BAD_CHARS = `\\{\\}%#'"`;
|
|
7
|
+
const COMMENTS = hljs.COMMENT("--", "$");
|
|
8
|
+
const VAR_DECLS = {
|
|
9
|
+
begin: "\\s+:\\s+",
|
|
10
|
+
end: "\\s*(:=|;|\\)|=>|$)",
|
|
11
|
+
illegal: BAD_CHARS,
|
|
12
|
+
contains: [
|
|
13
|
+
{
|
|
14
|
+
beginKeywords: "loop for declare others",
|
|
15
|
+
endsParent: true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
className: "keyword",
|
|
19
|
+
beginKeywords: "not null constant access function procedure in out aliased exception"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
className: "type",
|
|
23
|
+
begin: ID_REGEX,
|
|
24
|
+
endsParent: true,
|
|
25
|
+
relevance: 0
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
name: "Ada",
|
|
31
|
+
case_insensitive: true,
|
|
32
|
+
keywords: {
|
|
33
|
+
keyword: [
|
|
34
|
+
"abort",
|
|
35
|
+
"else",
|
|
36
|
+
"new",
|
|
37
|
+
"return",
|
|
38
|
+
"abs",
|
|
39
|
+
"elsif",
|
|
40
|
+
"not",
|
|
41
|
+
"reverse",
|
|
42
|
+
"abstract",
|
|
43
|
+
"end",
|
|
44
|
+
"accept",
|
|
45
|
+
"entry",
|
|
46
|
+
"select",
|
|
47
|
+
"access",
|
|
48
|
+
"exception",
|
|
49
|
+
"of",
|
|
50
|
+
"separate",
|
|
51
|
+
"aliased",
|
|
52
|
+
"exit",
|
|
53
|
+
"or",
|
|
54
|
+
"some",
|
|
55
|
+
"all",
|
|
56
|
+
"others",
|
|
57
|
+
"subtype",
|
|
58
|
+
"and",
|
|
59
|
+
"for",
|
|
60
|
+
"out",
|
|
61
|
+
"synchronized",
|
|
62
|
+
"array",
|
|
63
|
+
"function",
|
|
64
|
+
"overriding",
|
|
65
|
+
"at",
|
|
66
|
+
"tagged",
|
|
67
|
+
"generic",
|
|
68
|
+
"package",
|
|
69
|
+
"task",
|
|
70
|
+
"begin",
|
|
71
|
+
"goto",
|
|
72
|
+
"pragma",
|
|
73
|
+
"terminate",
|
|
74
|
+
"body",
|
|
75
|
+
"private",
|
|
76
|
+
"then",
|
|
77
|
+
"if",
|
|
78
|
+
"procedure",
|
|
79
|
+
"type",
|
|
80
|
+
"case",
|
|
81
|
+
"in",
|
|
82
|
+
"protected",
|
|
83
|
+
"constant",
|
|
84
|
+
"interface",
|
|
85
|
+
"is",
|
|
86
|
+
"raise",
|
|
87
|
+
"use",
|
|
88
|
+
"declare",
|
|
89
|
+
"range",
|
|
90
|
+
"delay",
|
|
91
|
+
"limited",
|
|
92
|
+
"record",
|
|
93
|
+
"when",
|
|
94
|
+
"delta",
|
|
95
|
+
"loop",
|
|
96
|
+
"rem",
|
|
97
|
+
"while",
|
|
98
|
+
"digits",
|
|
99
|
+
"renames",
|
|
100
|
+
"with",
|
|
101
|
+
"do",
|
|
102
|
+
"mod",
|
|
103
|
+
"requeue",
|
|
104
|
+
"xor",
|
|
105
|
+
"parallel"
|
|
106
|
+
],
|
|
107
|
+
literal: ["True", "False"]
|
|
108
|
+
},
|
|
109
|
+
contains: [
|
|
110
|
+
COMMENTS,
|
|
111
|
+
{
|
|
112
|
+
className: "string",
|
|
113
|
+
begin: /"/,
|
|
114
|
+
end: /"/,
|
|
115
|
+
contains: [{
|
|
116
|
+
begin: /""/,
|
|
117
|
+
relevance: 0
|
|
118
|
+
}]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
className: "string",
|
|
122
|
+
begin: /'.'/
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
className: "number",
|
|
126
|
+
begin: NUMBER_RE,
|
|
127
|
+
relevance: 0
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
className: "symbol",
|
|
131
|
+
begin: "'" + ID_REGEX
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
className: "title",
|
|
135
|
+
begin: "(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",
|
|
136
|
+
end: "(is|$)",
|
|
137
|
+
keywords: "package body",
|
|
138
|
+
excludeBegin: true,
|
|
139
|
+
excludeEnd: true,
|
|
140
|
+
illegal: BAD_CHARS
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
begin: "(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",
|
|
144
|
+
end: "(\\bis|\\bwith|\\brenames|\\)\\s*;)",
|
|
145
|
+
keywords: "overriding function procedure with is renames return",
|
|
146
|
+
returnBegin: true,
|
|
147
|
+
contains: [
|
|
148
|
+
COMMENTS,
|
|
149
|
+
{
|
|
150
|
+
className: "title",
|
|
151
|
+
begin: "(\\bwith\\s+)?\\b(function|procedure)\\s+",
|
|
152
|
+
end: "(\\(|\\s+|$)",
|
|
153
|
+
excludeBegin: true,
|
|
154
|
+
excludeEnd: true,
|
|
155
|
+
illegal: BAD_CHARS
|
|
156
|
+
},
|
|
157
|
+
VAR_DECLS,
|
|
158
|
+
{
|
|
159
|
+
className: "type",
|
|
160
|
+
begin: "\\breturn\\s+",
|
|
161
|
+
end: "(\\s+|;|$)",
|
|
162
|
+
keywords: "return",
|
|
163
|
+
excludeBegin: true,
|
|
164
|
+
excludeEnd: true,
|
|
165
|
+
endsParent: true,
|
|
166
|
+
illegal: BAD_CHARS
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
className: "type",
|
|
172
|
+
begin: "\\b(sub)?type\\s+",
|
|
173
|
+
end: "\\s+",
|
|
174
|
+
keywords: "type",
|
|
175
|
+
excludeBegin: true,
|
|
176
|
+
illegal: BAD_CHARS
|
|
177
|
+
},
|
|
178
|
+
VAR_DECLS
|
|
179
|
+
]
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
export { ada as default };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/angelscript.js
|
|
2
|
+
/** @type LanguageFn */
|
|
3
|
+
function angelscript(hljs) {
|
|
4
|
+
const builtInTypeMode = {
|
|
5
|
+
className: "built_in",
|
|
6
|
+
begin: "\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"
|
|
7
|
+
};
|
|
8
|
+
const objectHandleMode = {
|
|
9
|
+
className: "symbol",
|
|
10
|
+
begin: "[a-zA-Z0-9_]+@"
|
|
11
|
+
};
|
|
12
|
+
const genericMode = {
|
|
13
|
+
className: "keyword",
|
|
14
|
+
begin: "<",
|
|
15
|
+
end: ">",
|
|
16
|
+
contains: [builtInTypeMode, objectHandleMode]
|
|
17
|
+
};
|
|
18
|
+
builtInTypeMode.contains = [genericMode];
|
|
19
|
+
objectHandleMode.contains = [genericMode];
|
|
20
|
+
return {
|
|
21
|
+
name: "AngelScript",
|
|
22
|
+
aliases: ["asc"],
|
|
23
|
+
keywords: [
|
|
24
|
+
"for",
|
|
25
|
+
"in|0",
|
|
26
|
+
"break",
|
|
27
|
+
"continue",
|
|
28
|
+
"while",
|
|
29
|
+
"do|0",
|
|
30
|
+
"return",
|
|
31
|
+
"if",
|
|
32
|
+
"else",
|
|
33
|
+
"case",
|
|
34
|
+
"switch",
|
|
35
|
+
"namespace",
|
|
36
|
+
"is",
|
|
37
|
+
"cast",
|
|
38
|
+
"or",
|
|
39
|
+
"and",
|
|
40
|
+
"xor",
|
|
41
|
+
"not",
|
|
42
|
+
"get|0",
|
|
43
|
+
"in",
|
|
44
|
+
"inout|10",
|
|
45
|
+
"out",
|
|
46
|
+
"override",
|
|
47
|
+
"set|0",
|
|
48
|
+
"private",
|
|
49
|
+
"public",
|
|
50
|
+
"const",
|
|
51
|
+
"default|0",
|
|
52
|
+
"final",
|
|
53
|
+
"shared",
|
|
54
|
+
"external",
|
|
55
|
+
"mixin|10",
|
|
56
|
+
"enum",
|
|
57
|
+
"typedef",
|
|
58
|
+
"funcdef",
|
|
59
|
+
"this",
|
|
60
|
+
"super",
|
|
61
|
+
"import",
|
|
62
|
+
"from",
|
|
63
|
+
"interface",
|
|
64
|
+
"abstract|0",
|
|
65
|
+
"try",
|
|
66
|
+
"catch",
|
|
67
|
+
"protected",
|
|
68
|
+
"explicit",
|
|
69
|
+
"property"
|
|
70
|
+
],
|
|
71
|
+
illegal: "(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",
|
|
72
|
+
contains: [
|
|
73
|
+
{
|
|
74
|
+
className: "string",
|
|
75
|
+
begin: "'",
|
|
76
|
+
end: "'",
|
|
77
|
+
illegal: "\\n",
|
|
78
|
+
contains: [hljs.BACKSLASH_ESCAPE],
|
|
79
|
+
relevance: 0
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
className: "string",
|
|
83
|
+
begin: "\"\"\"",
|
|
84
|
+
end: "\"\"\""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
className: "string",
|
|
88
|
+
begin: "\"",
|
|
89
|
+
end: "\"",
|
|
90
|
+
illegal: "\\n",
|
|
91
|
+
contains: [hljs.BACKSLASH_ESCAPE],
|
|
92
|
+
relevance: 0
|
|
93
|
+
},
|
|
94
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
95
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
96
|
+
{
|
|
97
|
+
className: "string",
|
|
98
|
+
begin: "^\\s*\\[",
|
|
99
|
+
end: "\\]"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
beginKeywords: "interface namespace",
|
|
103
|
+
end: /\{/,
|
|
104
|
+
illegal: "[;.\\-]",
|
|
105
|
+
contains: [{
|
|
106
|
+
className: "symbol",
|
|
107
|
+
begin: "[a-zA-Z0-9_]+"
|
|
108
|
+
}]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
beginKeywords: "class",
|
|
112
|
+
end: /\{/,
|
|
113
|
+
illegal: "[;.\\-]",
|
|
114
|
+
contains: [{
|
|
115
|
+
className: "symbol",
|
|
116
|
+
begin: "[a-zA-Z0-9_]+",
|
|
117
|
+
contains: [{
|
|
118
|
+
begin: "[:,]\\s*",
|
|
119
|
+
contains: [{
|
|
120
|
+
className: "symbol",
|
|
121
|
+
begin: "[a-zA-Z0-9_]+"
|
|
122
|
+
}]
|
|
123
|
+
}]
|
|
124
|
+
}]
|
|
125
|
+
},
|
|
126
|
+
builtInTypeMode,
|
|
127
|
+
objectHandleMode,
|
|
128
|
+
{
|
|
129
|
+
className: "literal",
|
|
130
|
+
begin: "\\b(null|true|false)"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
className: "number",
|
|
134
|
+
relevance: 0,
|
|
135
|
+
begin: "(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
export { angelscript as default };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/apache.js
|
|
2
|
+
/** @type LanguageFn */
|
|
3
|
+
function apache(hljs) {
|
|
4
|
+
const NUMBER_REF = {
|
|
5
|
+
className: "number",
|
|
6
|
+
begin: /[$%]\d+/
|
|
7
|
+
};
|
|
8
|
+
const NUMBER = {
|
|
9
|
+
className: "number",
|
|
10
|
+
begin: /\b\d+/
|
|
11
|
+
};
|
|
12
|
+
const IP_ADDRESS = {
|
|
13
|
+
className: "number",
|
|
14
|
+
begin: /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/
|
|
15
|
+
};
|
|
16
|
+
return {
|
|
17
|
+
name: "Apache config",
|
|
18
|
+
aliases: ["apacheconf"],
|
|
19
|
+
case_insensitive: true,
|
|
20
|
+
contains: [
|
|
21
|
+
hljs.HASH_COMMENT_MODE,
|
|
22
|
+
{
|
|
23
|
+
className: "section",
|
|
24
|
+
begin: /<\/?/,
|
|
25
|
+
end: />/,
|
|
26
|
+
contains: [
|
|
27
|
+
IP_ADDRESS,
|
|
28
|
+
{
|
|
29
|
+
className: "number",
|
|
30
|
+
begin: /:\d{1,5}/
|
|
31
|
+
},
|
|
32
|
+
hljs.inherit(hljs.QUOTE_STRING_MODE, { relevance: 0 })
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
className: "attribute",
|
|
37
|
+
begin: /\w+/,
|
|
38
|
+
relevance: 0,
|
|
39
|
+
keywords: { _: [
|
|
40
|
+
"order",
|
|
41
|
+
"deny",
|
|
42
|
+
"allow",
|
|
43
|
+
"setenv",
|
|
44
|
+
"rewriterule",
|
|
45
|
+
"rewriteengine",
|
|
46
|
+
"rewritecond",
|
|
47
|
+
"documentroot",
|
|
48
|
+
"sethandler",
|
|
49
|
+
"errordocument",
|
|
50
|
+
"loadmodule",
|
|
51
|
+
"options",
|
|
52
|
+
"header",
|
|
53
|
+
"listen",
|
|
54
|
+
"serverroot",
|
|
55
|
+
"servername"
|
|
56
|
+
] },
|
|
57
|
+
starts: {
|
|
58
|
+
end: /$/,
|
|
59
|
+
relevance: 0,
|
|
60
|
+
keywords: { literal: "on off all deny allow" },
|
|
61
|
+
contains: [
|
|
62
|
+
{
|
|
63
|
+
scope: "punctuation",
|
|
64
|
+
match: /\\\n/
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
className: "meta",
|
|
68
|
+
begin: /\s\[/,
|
|
69
|
+
end: /\]$/
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
className: "variable",
|
|
73
|
+
begin: /[\$%]\{/,
|
|
74
|
+
end: /\}/,
|
|
75
|
+
contains: ["self", NUMBER_REF]
|
|
76
|
+
},
|
|
77
|
+
IP_ADDRESS,
|
|
78
|
+
NUMBER,
|
|
79
|
+
hljs.QUOTE_STRING_MODE
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
illegal: /\S/
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { apache as default };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/applescript.js
|
|
2
|
+
/** @type LanguageFn */
|
|
3
|
+
function applescript(hljs) {
|
|
4
|
+
const regex = hljs.regex;
|
|
5
|
+
const STRING = hljs.inherit(hljs.QUOTE_STRING_MODE, { illegal: null });
|
|
6
|
+
const PARAMS = {
|
|
7
|
+
className: "params",
|
|
8
|
+
begin: /\(/,
|
|
9
|
+
end: /\)/,
|
|
10
|
+
contains: [
|
|
11
|
+
"self",
|
|
12
|
+
hljs.C_NUMBER_MODE,
|
|
13
|
+
STRING
|
|
14
|
+
]
|
|
15
|
+
};
|
|
16
|
+
const COMMENT_MODE_1 = hljs.COMMENT(/--/, /$/);
|
|
17
|
+
const COMMENTS = [
|
|
18
|
+
COMMENT_MODE_1,
|
|
19
|
+
hljs.COMMENT(/\(\*/, /\*\)/, { contains: ["self", COMMENT_MODE_1] }),
|
|
20
|
+
hljs.HASH_COMMENT_MODE
|
|
21
|
+
];
|
|
22
|
+
const KEYWORD_PATTERNS = [
|
|
23
|
+
/apart from/,
|
|
24
|
+
/aside from/,
|
|
25
|
+
/instead of/,
|
|
26
|
+
/out of/,
|
|
27
|
+
/greater than/,
|
|
28
|
+
/isn't|(doesn't|does not) (equal|come before|come after|contain)/,
|
|
29
|
+
/(greater|less) than( or equal)?/,
|
|
30
|
+
/(starts?|ends|begins?) with/,
|
|
31
|
+
/contained by/,
|
|
32
|
+
/comes (before|after)/,
|
|
33
|
+
/a (ref|reference)/,
|
|
34
|
+
/POSIX (file|path)/,
|
|
35
|
+
/(date|time) string/,
|
|
36
|
+
/quoted form/
|
|
37
|
+
];
|
|
38
|
+
return {
|
|
39
|
+
name: "AppleScript",
|
|
40
|
+
aliases: ["osascript"],
|
|
41
|
+
keywords: {
|
|
42
|
+
keyword: "about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",
|
|
43
|
+
literal: "AppleScript false linefeed return pi quote result space tab true",
|
|
44
|
+
built_in: "alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"
|
|
45
|
+
},
|
|
46
|
+
contains: [
|
|
47
|
+
STRING,
|
|
48
|
+
hljs.C_NUMBER_MODE,
|
|
49
|
+
{
|
|
50
|
+
className: "built_in",
|
|
51
|
+
begin: regex.concat(/\b/, regex.either(...[
|
|
52
|
+
/clipboard info/,
|
|
53
|
+
/the clipboard/,
|
|
54
|
+
/info for/,
|
|
55
|
+
/list (disks|folder)/,
|
|
56
|
+
/mount volume/,
|
|
57
|
+
/path to/,
|
|
58
|
+
/(close|open for) access/,
|
|
59
|
+
/(get|set) eof/,
|
|
60
|
+
/current date/,
|
|
61
|
+
/do shell script/,
|
|
62
|
+
/get volume settings/,
|
|
63
|
+
/random number/,
|
|
64
|
+
/set volume/,
|
|
65
|
+
/system attribute/,
|
|
66
|
+
/system info/,
|
|
67
|
+
/time to GMT/,
|
|
68
|
+
/(load|run|store) script/,
|
|
69
|
+
/scripting components/,
|
|
70
|
+
/ASCII (character|number)/,
|
|
71
|
+
/localized string/,
|
|
72
|
+
/choose (application|color|file|file name|folder|from list|remote application|URL)/,
|
|
73
|
+
/display (alert|dialog)/
|
|
74
|
+
]), /\b/)
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
className: "built_in",
|
|
78
|
+
begin: /^\s*return\b/
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
className: "literal",
|
|
82
|
+
begin: /\b(text item delimiters|current application|missing value)\b/
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
className: "keyword",
|
|
86
|
+
begin: regex.concat(/\b/, regex.either(...KEYWORD_PATTERNS), /\b/)
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
beginKeywords: "on",
|
|
90
|
+
illegal: /[${=;\n]/,
|
|
91
|
+
contains: [hljs.UNDERSCORE_TITLE_MODE, PARAMS]
|
|
92
|
+
},
|
|
93
|
+
...COMMENTS
|
|
94
|
+
],
|
|
95
|
+
illegal: /\/\/|->|=>|\[\[/
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
export { applescript as default };
|