@threadlabs/looma 0.18.5 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +34 -3
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +55 -0
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +7 -2
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +29 -0
- package/dist/index.js +1 -1
- package/editor/chunks/extensions.js +39 -3
- package/editor/extensions/preset.d.ts +2 -0
- package/editor/extensions/table-commands.d.ts +1 -1
- package/editor/table-overlay.d.ts +8 -3
- package/package.json +2 -1
- package/styles/ui-editor-table-overlay.css +30 -0
- package/styles/ui-editor-table-toolbar.css +7 -2
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +9 -3
- package/vue/UiEditorTableOverlay.d.ts +8 -0
- package/vue/UiEditorTableOverlay.vue +45 -2
- package/vue/UiEditorTableToolbar.vue +7 -2
- package/vue/chunks/1c.js +106 -0
- package/vue/chunks/UiEditorTableOverlay.js +14 -4
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/abnf.js +61 -0
- package/vue/chunks/accesslog.js +72 -0
- package/vue/chunks/actionscript.js +139 -0
- package/vue/chunks/ada.js +183 -0
- package/vue/chunks/angelscript.js +141 -0
- package/vue/chunks/apache.js +88 -0
- package/vue/chunks/applescript.js +99 -0
- package/vue/chunks/arcade.js +405 -0
- package/vue/chunks/arduino.js +871 -0
- package/vue/chunks/armasm.js +65 -0
- package/vue/chunks/asciidoc.js +181 -0
- package/vue/chunks/aspectj.js +202 -0
- package/vue/chunks/autohotkey.js +54 -0
- package/vue/chunks/autoit.js +132 -0
- package/vue/chunks/avrasm.js +46 -0
- package/vue/chunks/awk.js +58 -0
- package/vue/chunks/axapta.js +167 -0
- package/vue/chunks/bash.js +358 -0
- package/vue/chunks/basic.js +221 -0
- package/vue/chunks/bnf.js +27 -0
- package/vue/chunks/brainfuck.js +40 -0
- package/vue/chunks/c.js +265 -0
- package/vue/chunks/cal.js +136 -0
- package/vue/chunks/capnproto.js +86 -0
- package/vue/chunks/ceylon.js +125 -0
- package/vue/chunks/clean.js +54 -0
- package/vue/chunks/clojure-repl.js +17 -0
- package/vue/chunks/clojure.js +133 -0
- package/vue/chunks/cmake.js +23 -0
- package/vue/chunks/coffeescript.js +291 -0
- package/vue/chunks/coq.js +436 -0
- package/vue/chunks/cos.js +77 -0
- package/vue/chunks/cpp.js +492 -0
- package/vue/chunks/crmsh.js +80 -0
- package/vue/chunks/crystal.js +260 -0
- package/vue/chunks/csharp.js +376 -0
- package/vue/chunks/csp.js +52 -0
- package/vue/chunks/css.js +890 -0
- package/vue/chunks/d.js +184 -0
- package/vue/chunks/dart.js +226 -0
- package/vue/chunks/delphi.js +227 -0
- package/vue/chunks/diff.js +40 -0
- package/vue/chunks/django.js +43 -0
- package/vue/chunks/dns.js +66 -0
- package/vue/chunks/dockerfile.js +35 -0
- package/vue/chunks/dos.js +147 -0
- package/vue/chunks/dsconfig.js +55 -0
- package/vue/chunks/dts.js +119 -0
- package/vue/chunks/dust.js +33 -0
- package/vue/chunks/ebnf.js +40 -0
- package/vue/chunks/elixir.js +241 -0
- package/vue/chunks/elm.js +103 -0
- package/vue/chunks/erb.js +17 -0
- package/vue/chunks/erlang-repl.js +41 -0
- package/vue/chunks/erlang.js +236 -0
- package/vue/chunks/excel.js +562 -0
- package/vue/chunks/fix.js +30 -0
- package/vue/chunks/flix.js +60 -0
- package/vue/chunks/fortran.js +543 -0
- package/vue/chunks/fsharp.js +440 -0
- package/vue/chunks/gams.js +134 -0
- package/vue/chunks/gauss.js +167 -0
- package/vue/chunks/gcode.js +131 -0
- package/vue/chunks/gherkin.js +41 -0
- package/vue/chunks/glsl.js +25 -0
- package/vue/chunks/gml.js +3119 -0
- package/vue/chunks/go.js +140 -0
- package/vue/chunks/golo.js +72 -0
- package/vue/chunks/gradle.js +181 -0
- package/vue/chunks/graphql.js +68 -0
- package/vue/chunks/groovy.js +159 -0
- package/vue/chunks/haml.js +96 -0
- package/vue/chunks/handlebars.js +191 -0
- package/vue/chunks/haskell.js +149 -0
- package/vue/chunks/haxe.js +142 -0
- package/vue/chunks/hsp.js +45 -0
- package/vue/chunks/http.js +77 -0
- package/vue/chunks/hy.js +92 -0
- package/vue/chunks/inform7.js +45 -0
- package/vue/chunks/ini.js +94 -0
- package/vue/chunks/irpf90.js +52 -0
- package/vue/chunks/isbl.js +112 -0
- package/vue/chunks/java.js +237 -0
- package/vue/chunks/javascript.js +570 -0
- package/vue/chunks/jboss-cli.js +46 -0
- package/vue/chunks/json.js +45 -0
- package/vue/chunks/julia-repl.js +18 -0
- package/vue/chunks/julia.js +353 -0
- package/vue/chunks/kotlin.js +216 -0
- package/vue/chunks/lasso.js +127 -0
- package/vue/chunks/latex.js +206 -0
- package/vue/chunks/ldif.js +25 -0
- package/vue/chunks/leaf.js +72 -0
- package/vue/chunks/less.js +953 -0
- package/vue/chunks/lisp.js +119 -0
- package/vue/chunks/livecodeserver.js +86 -0
- package/vue/chunks/livescript.js +309 -0
- package/vue/chunks/llvm.js +77 -0
- package/vue/chunks/lsl.js +55 -0
- package/vue/chunks/lua.js +49 -0
- package/vue/chunks/makefile.js +62 -0
- package/vue/chunks/markdown.js +194 -0
- package/vue/chunks/mathematica.js +7317 -0
- package/vue/chunks/matlab.js +70 -0
- package/vue/chunks/maxima.js +38 -0
- package/vue/chunks/mel.js +24 -0
- package/vue/chunks/mercury.js +62 -0
- package/vue/chunks/mipsasm.js +53 -0
- package/vue/chunks/mizar.js +10 -0
- package/vue/chunks/mojolicious.js +27 -0
- package/vue/chunks/monkey.js +158 -0
- package/vue/chunks/moonscript.js +102 -0
- package/vue/chunks/n1ql.js +346 -0
- package/vue/chunks/nestedtext.js +66 -0
- package/vue/chunks/nginx.js +127 -0
- package/vue/chunks/nim.js +174 -0
- package/vue/chunks/nix.js +334 -0
- package/vue/chunks/node-repl.js +20 -0
- package/vue/chunks/nsis.js +515 -0
- package/vue/chunks/objectivec.js +235 -0
- package/vue/chunks/ocaml.js +52 -0
- package/vue/chunks/openscad.js +66 -0
- package/vue/chunks/oxygene.js +58 -0
- package/vue/chunks/parser3.js +40 -0
- package/vue/chunks/perl.js +454 -0
- package/vue/chunks/pf.js +30 -0
- package/vue/chunks/pgsql.js +196 -0
- package/vue/chunks/php-template.js +43 -0
- package/vue/chunks/php.js +527 -0
- package/vue/chunks/plaintext.js +10 -0
- package/vue/chunks/pony.js +60 -0
- package/vue/chunks/powershell.js +208 -0
- package/vue/chunks/processing.js +407 -0
- package/vue/chunks/profile.js +38 -0
- package/vue/chunks/prolog.js +62 -0
- package/vue/chunks/properties.js +45 -0
- package/vue/chunks/protobuf.js +63 -0
- package/vue/chunks/puppet.js +87 -0
- package/vue/chunks/purebasic.js +42 -0
- package/vue/chunks/python-repl.js +19 -0
- package/vue/chunks/python.js +357 -0
- package/vue/chunks/q.js +21 -0
- package/vue/chunks/qml.js +134 -0
- package/vue/chunks/r.js +145 -0
- package/vue/chunks/reasonml.js +134 -0
- package/vue/chunks/rib.js +16 -0
- package/vue/chunks/roboconf.js +54 -0
- package/vue/chunks/routeros.js +109 -0
- package/vue/chunks/rsl.js +138 -0
- package/vue/chunks/ruby.js +322 -0
- package/vue/chunks/ruleslanguage.js +26 -0
- package/vue/chunks/rust.js +296 -0
- package/vue/chunks/sas.js +533 -0
- package/vue/chunks/scala.js +173 -0
- package/vue/chunks/scheme.js +118 -0
- package/vue/chunks/scilab.js +45 -0
- package/vue/chunks/scss.js +900 -0
- package/vue/chunks/shell.js +18 -0
- package/vue/chunks/smali.js +113 -0
- package/vue/chunks/smalltalk.js +59 -0
- package/vue/chunks/sml.js +49 -0
- package/vue/chunks/sqf.js +2599 -0
- package/vue/chunks/sql.js +624 -0
- package/vue/chunks/stan.js +471 -0
- package/vue/chunks/stata.js +33 -0
- package/vue/chunks/step21.js +53 -0
- package/vue/chunks/stylus.js +925 -0
- package/vue/chunks/subunit.js +34 -0
- package/vue/chunks/swift.js +699 -0
- package/vue/chunks/taggerscript.js +37 -0
- package/vue/chunks/tap.js +30 -0
- package/vue/chunks/tcl.js +165 -0
- package/vue/chunks/thrift.js +65 -0
- package/vue/chunks/tp.js +155 -0
- package/vue/chunks/twig.js +232 -0
- package/vue/chunks/typescript.js +672 -0
- package/vue/chunks/vala.js +39 -0
- package/vue/chunks/vbnet.js +86 -0
- package/vue/chunks/vbscript-html.js +14 -0
- package/vue/chunks/vbscript.js +200 -0
- package/vue/chunks/verilog.js +534 -0
- package/vue/chunks/vhdl.js +190 -0
- package/vue/chunks/vim.js +54 -0
- package/vue/chunks/wasm.js +111 -0
- package/vue/chunks/wren.js +229 -0
- package/vue/chunks/x86asm.js +64 -0
- package/vue/chunks/xl.js +192 -0
- package/vue/chunks/xml.js +175 -0
- package/vue/chunks/xquery.js +303 -0
- package/vue/chunks/yaml.js +159 -0
- package/vue/chunks/zephir.js +74 -0
- package/vue/components.css +119 -85
- package/vue/editor/LoomaEditor.d.ts +7 -7
- package/vue/editor/code-language-catalog.d.ts +196 -0
- package/vue/editor/index.js +290 -20
package/vue/chunks/go.js
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/go.js
|
|
2
|
+
function go(hljs) {
|
|
3
|
+
const KEYWORDS = {
|
|
4
|
+
keyword: [
|
|
5
|
+
"break",
|
|
6
|
+
"case",
|
|
7
|
+
"chan",
|
|
8
|
+
"const",
|
|
9
|
+
"continue",
|
|
10
|
+
"default",
|
|
11
|
+
"defer",
|
|
12
|
+
"else",
|
|
13
|
+
"fallthrough",
|
|
14
|
+
"for",
|
|
15
|
+
"func",
|
|
16
|
+
"go",
|
|
17
|
+
"goto",
|
|
18
|
+
"if",
|
|
19
|
+
"import",
|
|
20
|
+
"interface",
|
|
21
|
+
"map",
|
|
22
|
+
"package",
|
|
23
|
+
"range",
|
|
24
|
+
"return",
|
|
25
|
+
"select",
|
|
26
|
+
"struct",
|
|
27
|
+
"switch",
|
|
28
|
+
"type",
|
|
29
|
+
"var"
|
|
30
|
+
],
|
|
31
|
+
type: [
|
|
32
|
+
"bool",
|
|
33
|
+
"byte",
|
|
34
|
+
"complex64",
|
|
35
|
+
"complex128",
|
|
36
|
+
"error",
|
|
37
|
+
"float32",
|
|
38
|
+
"float64",
|
|
39
|
+
"int8",
|
|
40
|
+
"int16",
|
|
41
|
+
"int32",
|
|
42
|
+
"int64",
|
|
43
|
+
"string",
|
|
44
|
+
"uint8",
|
|
45
|
+
"uint16",
|
|
46
|
+
"uint32",
|
|
47
|
+
"uint64",
|
|
48
|
+
"int",
|
|
49
|
+
"uint",
|
|
50
|
+
"uintptr",
|
|
51
|
+
"rune"
|
|
52
|
+
],
|
|
53
|
+
literal: [
|
|
54
|
+
"true",
|
|
55
|
+
"false",
|
|
56
|
+
"iota",
|
|
57
|
+
"nil"
|
|
58
|
+
],
|
|
59
|
+
built_in: [
|
|
60
|
+
"append",
|
|
61
|
+
"cap",
|
|
62
|
+
"close",
|
|
63
|
+
"complex",
|
|
64
|
+
"copy",
|
|
65
|
+
"imag",
|
|
66
|
+
"len",
|
|
67
|
+
"make",
|
|
68
|
+
"new",
|
|
69
|
+
"panic",
|
|
70
|
+
"print",
|
|
71
|
+
"println",
|
|
72
|
+
"real",
|
|
73
|
+
"recover",
|
|
74
|
+
"delete"
|
|
75
|
+
]
|
|
76
|
+
};
|
|
77
|
+
return {
|
|
78
|
+
name: "Go",
|
|
79
|
+
aliases: ["golang"],
|
|
80
|
+
keywords: KEYWORDS,
|
|
81
|
+
illegal: "</",
|
|
82
|
+
contains: [
|
|
83
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
84
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
85
|
+
{
|
|
86
|
+
className: "string",
|
|
87
|
+
variants: [
|
|
88
|
+
hljs.QUOTE_STRING_MODE,
|
|
89
|
+
hljs.APOS_STRING_MODE,
|
|
90
|
+
{
|
|
91
|
+
begin: "`",
|
|
92
|
+
end: "`"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
className: "number",
|
|
98
|
+
variants: [
|
|
99
|
+
{
|
|
100
|
+
match: /-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,
|
|
101
|
+
relevance: 0
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
match: /-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,
|
|
105
|
+
relevance: 0
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
match: /-?\b0[oO](_?[0-7])*i?/,
|
|
109
|
+
relevance: 0
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
match: /-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,
|
|
113
|
+
relevance: 0
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
match: /-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,
|
|
117
|
+
relevance: 0
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{ begin: /:=/ },
|
|
122
|
+
{
|
|
123
|
+
className: "function",
|
|
124
|
+
beginKeywords: "func",
|
|
125
|
+
end: "\\s*(\\{|$)",
|
|
126
|
+
excludeEnd: true,
|
|
127
|
+
contains: [hljs.TITLE_MODE, {
|
|
128
|
+
className: "params",
|
|
129
|
+
begin: /\(/,
|
|
130
|
+
end: /\)/,
|
|
131
|
+
endsParent: true,
|
|
132
|
+
keywords: KEYWORDS,
|
|
133
|
+
illegal: /["']/
|
|
134
|
+
}]
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
export { go as default };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/golo.js
|
|
2
|
+
function golo(hljs) {
|
|
3
|
+
return {
|
|
4
|
+
name: "Golo",
|
|
5
|
+
keywords: {
|
|
6
|
+
keyword: [
|
|
7
|
+
"println",
|
|
8
|
+
"readln",
|
|
9
|
+
"print",
|
|
10
|
+
"import",
|
|
11
|
+
"module",
|
|
12
|
+
"function",
|
|
13
|
+
"local",
|
|
14
|
+
"return",
|
|
15
|
+
"let",
|
|
16
|
+
"var",
|
|
17
|
+
"while",
|
|
18
|
+
"for",
|
|
19
|
+
"foreach",
|
|
20
|
+
"times",
|
|
21
|
+
"in",
|
|
22
|
+
"case",
|
|
23
|
+
"when",
|
|
24
|
+
"match",
|
|
25
|
+
"with",
|
|
26
|
+
"break",
|
|
27
|
+
"continue",
|
|
28
|
+
"augment",
|
|
29
|
+
"augmentation",
|
|
30
|
+
"each",
|
|
31
|
+
"find",
|
|
32
|
+
"filter",
|
|
33
|
+
"reduce",
|
|
34
|
+
"if",
|
|
35
|
+
"then",
|
|
36
|
+
"else",
|
|
37
|
+
"otherwise",
|
|
38
|
+
"try",
|
|
39
|
+
"catch",
|
|
40
|
+
"finally",
|
|
41
|
+
"raise",
|
|
42
|
+
"throw",
|
|
43
|
+
"orIfNull",
|
|
44
|
+
"DynamicObject|10",
|
|
45
|
+
"DynamicVariable",
|
|
46
|
+
"struct",
|
|
47
|
+
"Observable",
|
|
48
|
+
"map",
|
|
49
|
+
"set",
|
|
50
|
+
"vector",
|
|
51
|
+
"list",
|
|
52
|
+
"array"
|
|
53
|
+
],
|
|
54
|
+
literal: [
|
|
55
|
+
"true",
|
|
56
|
+
"false",
|
|
57
|
+
"null"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
contains: [
|
|
61
|
+
hljs.HASH_COMMENT_MODE,
|
|
62
|
+
hljs.QUOTE_STRING_MODE,
|
|
63
|
+
hljs.C_NUMBER_MODE,
|
|
64
|
+
{
|
|
65
|
+
className: "meta",
|
|
66
|
+
begin: "@[A-Za-z]+"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { golo as default };
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/gradle.js
|
|
2
|
+
function gradle(hljs) {
|
|
3
|
+
return {
|
|
4
|
+
name: "Gradle",
|
|
5
|
+
case_insensitive: true,
|
|
6
|
+
keywords: [
|
|
7
|
+
"task",
|
|
8
|
+
"project",
|
|
9
|
+
"allprojects",
|
|
10
|
+
"subprojects",
|
|
11
|
+
"artifacts",
|
|
12
|
+
"buildscript",
|
|
13
|
+
"configurations",
|
|
14
|
+
"dependencies",
|
|
15
|
+
"repositories",
|
|
16
|
+
"sourceSets",
|
|
17
|
+
"description",
|
|
18
|
+
"delete",
|
|
19
|
+
"from",
|
|
20
|
+
"into",
|
|
21
|
+
"include",
|
|
22
|
+
"exclude",
|
|
23
|
+
"source",
|
|
24
|
+
"classpath",
|
|
25
|
+
"destinationDir",
|
|
26
|
+
"includes",
|
|
27
|
+
"options",
|
|
28
|
+
"sourceCompatibility",
|
|
29
|
+
"targetCompatibility",
|
|
30
|
+
"group",
|
|
31
|
+
"flatDir",
|
|
32
|
+
"doLast",
|
|
33
|
+
"doFirst",
|
|
34
|
+
"flatten",
|
|
35
|
+
"todir",
|
|
36
|
+
"fromdir",
|
|
37
|
+
"ant",
|
|
38
|
+
"def",
|
|
39
|
+
"abstract",
|
|
40
|
+
"break",
|
|
41
|
+
"case",
|
|
42
|
+
"catch",
|
|
43
|
+
"continue",
|
|
44
|
+
"default",
|
|
45
|
+
"do",
|
|
46
|
+
"else",
|
|
47
|
+
"extends",
|
|
48
|
+
"final",
|
|
49
|
+
"finally",
|
|
50
|
+
"for",
|
|
51
|
+
"if",
|
|
52
|
+
"implements",
|
|
53
|
+
"instanceof",
|
|
54
|
+
"native",
|
|
55
|
+
"new",
|
|
56
|
+
"private",
|
|
57
|
+
"protected",
|
|
58
|
+
"public",
|
|
59
|
+
"return",
|
|
60
|
+
"static",
|
|
61
|
+
"switch",
|
|
62
|
+
"synchronized",
|
|
63
|
+
"throw",
|
|
64
|
+
"throws",
|
|
65
|
+
"transient",
|
|
66
|
+
"try",
|
|
67
|
+
"volatile",
|
|
68
|
+
"while",
|
|
69
|
+
"strictfp",
|
|
70
|
+
"package",
|
|
71
|
+
"import",
|
|
72
|
+
"false",
|
|
73
|
+
"null",
|
|
74
|
+
"super",
|
|
75
|
+
"this",
|
|
76
|
+
"true",
|
|
77
|
+
"antlrtask",
|
|
78
|
+
"checkstyle",
|
|
79
|
+
"codenarc",
|
|
80
|
+
"copy",
|
|
81
|
+
"boolean",
|
|
82
|
+
"byte",
|
|
83
|
+
"char",
|
|
84
|
+
"class",
|
|
85
|
+
"double",
|
|
86
|
+
"float",
|
|
87
|
+
"int",
|
|
88
|
+
"interface",
|
|
89
|
+
"long",
|
|
90
|
+
"short",
|
|
91
|
+
"void",
|
|
92
|
+
"compile",
|
|
93
|
+
"runTime",
|
|
94
|
+
"file",
|
|
95
|
+
"fileTree",
|
|
96
|
+
"abs",
|
|
97
|
+
"any",
|
|
98
|
+
"append",
|
|
99
|
+
"asList",
|
|
100
|
+
"asWritable",
|
|
101
|
+
"call",
|
|
102
|
+
"collect",
|
|
103
|
+
"compareTo",
|
|
104
|
+
"count",
|
|
105
|
+
"div",
|
|
106
|
+
"dump",
|
|
107
|
+
"each",
|
|
108
|
+
"eachByte",
|
|
109
|
+
"eachFile",
|
|
110
|
+
"eachLine",
|
|
111
|
+
"every",
|
|
112
|
+
"find",
|
|
113
|
+
"findAll",
|
|
114
|
+
"flatten",
|
|
115
|
+
"getAt",
|
|
116
|
+
"getErr",
|
|
117
|
+
"getIn",
|
|
118
|
+
"getOut",
|
|
119
|
+
"getText",
|
|
120
|
+
"grep",
|
|
121
|
+
"immutable",
|
|
122
|
+
"inject",
|
|
123
|
+
"inspect",
|
|
124
|
+
"intersect",
|
|
125
|
+
"invokeMethods",
|
|
126
|
+
"isCase",
|
|
127
|
+
"join",
|
|
128
|
+
"leftShift",
|
|
129
|
+
"minus",
|
|
130
|
+
"multiply",
|
|
131
|
+
"newInputStream",
|
|
132
|
+
"newOutputStream",
|
|
133
|
+
"newPrintWriter",
|
|
134
|
+
"newReader",
|
|
135
|
+
"newWriter",
|
|
136
|
+
"next",
|
|
137
|
+
"plus",
|
|
138
|
+
"pop",
|
|
139
|
+
"power",
|
|
140
|
+
"previous",
|
|
141
|
+
"print",
|
|
142
|
+
"println",
|
|
143
|
+
"push",
|
|
144
|
+
"putAt",
|
|
145
|
+
"read",
|
|
146
|
+
"readBytes",
|
|
147
|
+
"readLines",
|
|
148
|
+
"reverse",
|
|
149
|
+
"reverseEach",
|
|
150
|
+
"round",
|
|
151
|
+
"size",
|
|
152
|
+
"sort",
|
|
153
|
+
"splitEachLine",
|
|
154
|
+
"step",
|
|
155
|
+
"subMap",
|
|
156
|
+
"times",
|
|
157
|
+
"toInteger",
|
|
158
|
+
"toList",
|
|
159
|
+
"tokenize",
|
|
160
|
+
"upto",
|
|
161
|
+
"waitForOrKill",
|
|
162
|
+
"withPrintWriter",
|
|
163
|
+
"withReader",
|
|
164
|
+
"withStream",
|
|
165
|
+
"withWriter",
|
|
166
|
+
"withWriterAppend",
|
|
167
|
+
"write",
|
|
168
|
+
"writeLine"
|
|
169
|
+
],
|
|
170
|
+
contains: [
|
|
171
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
172
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
173
|
+
hljs.APOS_STRING_MODE,
|
|
174
|
+
hljs.QUOTE_STRING_MODE,
|
|
175
|
+
hljs.NUMBER_MODE,
|
|
176
|
+
hljs.REGEXP_MODE
|
|
177
|
+
]
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
//#endregion
|
|
181
|
+
export { gradle as default };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/graphql.js
|
|
2
|
+
/** @type LanguageFn */
|
|
3
|
+
function graphql(hljs) {
|
|
4
|
+
const regex = hljs.regex;
|
|
5
|
+
return {
|
|
6
|
+
name: "GraphQL",
|
|
7
|
+
aliases: ["gql"],
|
|
8
|
+
case_insensitive: true,
|
|
9
|
+
disableAutodetect: false,
|
|
10
|
+
keywords: {
|
|
11
|
+
keyword: [
|
|
12
|
+
"query",
|
|
13
|
+
"mutation",
|
|
14
|
+
"subscription",
|
|
15
|
+
"type",
|
|
16
|
+
"input",
|
|
17
|
+
"schema",
|
|
18
|
+
"directive",
|
|
19
|
+
"interface",
|
|
20
|
+
"union",
|
|
21
|
+
"scalar",
|
|
22
|
+
"fragment",
|
|
23
|
+
"enum",
|
|
24
|
+
"on"
|
|
25
|
+
],
|
|
26
|
+
literal: [
|
|
27
|
+
"true",
|
|
28
|
+
"false",
|
|
29
|
+
"null"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
contains: [
|
|
33
|
+
hljs.HASH_COMMENT_MODE,
|
|
34
|
+
hljs.QUOTE_STRING_MODE,
|
|
35
|
+
hljs.NUMBER_MODE,
|
|
36
|
+
{
|
|
37
|
+
scope: "punctuation",
|
|
38
|
+
match: /[.]{3}/,
|
|
39
|
+
relevance: 0
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
scope: "punctuation",
|
|
43
|
+
begin: /[\!\(\)\:\=\[\]\{\|\}]{1}/,
|
|
44
|
+
relevance: 0
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
scope: "variable",
|
|
48
|
+
begin: /\$/,
|
|
49
|
+
end: /\W/,
|
|
50
|
+
excludeEnd: true,
|
|
51
|
+
relevance: 0
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
scope: "meta",
|
|
55
|
+
match: /@\w+/,
|
|
56
|
+
excludeEnd: true
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
scope: "symbol",
|
|
60
|
+
begin: regex.concat(/[_A-Za-z][_0-9A-Za-z]*/, regex.lookahead(/\s*:/)),
|
|
61
|
+
relevance: 0
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
illegal: [/[;<']/, /BEGIN/]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { graphql as default };
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/groovy.js
|
|
2
|
+
function variants(variants, obj = {}) {
|
|
3
|
+
obj.variants = variants;
|
|
4
|
+
return obj;
|
|
5
|
+
}
|
|
6
|
+
function groovy(hljs) {
|
|
7
|
+
const regex = hljs.regex;
|
|
8
|
+
const IDENT_RE = "[A-Za-z0-9_$]+";
|
|
9
|
+
const COMMENT = variants([
|
|
10
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
11
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
12
|
+
hljs.COMMENT("/\\*\\*", "\\*/", {
|
|
13
|
+
relevance: 0,
|
|
14
|
+
contains: [{
|
|
15
|
+
begin: /\w+@/,
|
|
16
|
+
relevance: 0
|
|
17
|
+
}, {
|
|
18
|
+
className: "doctag",
|
|
19
|
+
begin: "@[A-Za-z]+"
|
|
20
|
+
}]
|
|
21
|
+
})
|
|
22
|
+
]);
|
|
23
|
+
const REGEXP = {
|
|
24
|
+
className: "regexp",
|
|
25
|
+
begin: /~?\/[^\/\n]+\//,
|
|
26
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
|
27
|
+
};
|
|
28
|
+
const NUMBER = variants([hljs.BINARY_NUMBER_MODE, hljs.C_NUMBER_MODE]);
|
|
29
|
+
const STRING = variants([
|
|
30
|
+
{
|
|
31
|
+
begin: /"""/,
|
|
32
|
+
end: /"""/
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
begin: /'''/,
|
|
36
|
+
end: /'''/
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
begin: "\\$/",
|
|
40
|
+
end: "/\\$",
|
|
41
|
+
relevance: 10
|
|
42
|
+
},
|
|
43
|
+
hljs.APOS_STRING_MODE,
|
|
44
|
+
hljs.QUOTE_STRING_MODE
|
|
45
|
+
], { className: "string" });
|
|
46
|
+
const CLASS_DEFINITION = {
|
|
47
|
+
match: [
|
|
48
|
+
/(class|interface|trait|enum|record|extends|implements)/,
|
|
49
|
+
/\s+/,
|
|
50
|
+
hljs.UNDERSCORE_IDENT_RE
|
|
51
|
+
],
|
|
52
|
+
scope: {
|
|
53
|
+
1: "keyword",
|
|
54
|
+
3: "title.class"
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
return {
|
|
58
|
+
name: "Groovy",
|
|
59
|
+
keywords: {
|
|
60
|
+
"variable.language": "this super",
|
|
61
|
+
literal: "true false null",
|
|
62
|
+
type: [
|
|
63
|
+
"byte",
|
|
64
|
+
"short",
|
|
65
|
+
"char",
|
|
66
|
+
"int",
|
|
67
|
+
"long",
|
|
68
|
+
"boolean",
|
|
69
|
+
"float",
|
|
70
|
+
"double",
|
|
71
|
+
"void"
|
|
72
|
+
],
|
|
73
|
+
keyword: [
|
|
74
|
+
"def",
|
|
75
|
+
"as",
|
|
76
|
+
"in",
|
|
77
|
+
"assert",
|
|
78
|
+
"trait",
|
|
79
|
+
"abstract",
|
|
80
|
+
"static",
|
|
81
|
+
"volatile",
|
|
82
|
+
"transient",
|
|
83
|
+
"public",
|
|
84
|
+
"private",
|
|
85
|
+
"protected",
|
|
86
|
+
"synchronized",
|
|
87
|
+
"final",
|
|
88
|
+
"class",
|
|
89
|
+
"interface",
|
|
90
|
+
"enum",
|
|
91
|
+
"if",
|
|
92
|
+
"else",
|
|
93
|
+
"for",
|
|
94
|
+
"while",
|
|
95
|
+
"switch",
|
|
96
|
+
"case",
|
|
97
|
+
"break",
|
|
98
|
+
"default",
|
|
99
|
+
"continue",
|
|
100
|
+
"throw",
|
|
101
|
+
"throws",
|
|
102
|
+
"try",
|
|
103
|
+
"catch",
|
|
104
|
+
"finally",
|
|
105
|
+
"implements",
|
|
106
|
+
"extends",
|
|
107
|
+
"new",
|
|
108
|
+
"import",
|
|
109
|
+
"package",
|
|
110
|
+
"return",
|
|
111
|
+
"instanceof",
|
|
112
|
+
"var"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
contains: [
|
|
116
|
+
hljs.SHEBANG({
|
|
117
|
+
binary: "groovy",
|
|
118
|
+
relevance: 10
|
|
119
|
+
}),
|
|
120
|
+
COMMENT,
|
|
121
|
+
STRING,
|
|
122
|
+
REGEXP,
|
|
123
|
+
NUMBER,
|
|
124
|
+
CLASS_DEFINITION,
|
|
125
|
+
{
|
|
126
|
+
className: "meta",
|
|
127
|
+
begin: "@[A-Za-z]+",
|
|
128
|
+
relevance: 0
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
className: "attr",
|
|
132
|
+
begin: IDENT_RE + "[ ]*:",
|
|
133
|
+
relevance: 0
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
begin: /\?/,
|
|
137
|
+
end: /:/,
|
|
138
|
+
relevance: 0,
|
|
139
|
+
contains: [
|
|
140
|
+
COMMENT,
|
|
141
|
+
STRING,
|
|
142
|
+
REGEXP,
|
|
143
|
+
NUMBER,
|
|
144
|
+
"self"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
className: "symbol",
|
|
149
|
+
begin: "^[ ]*" + regex.lookahead(IDENT_RE + ":"),
|
|
150
|
+
excludeBegin: true,
|
|
151
|
+
end: IDENT_RE + ":",
|
|
152
|
+
relevance: 0
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
illegal: /#|<\//
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
export { groovy as default };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/haml.js
|
|
2
|
+
function haml(hljs) {
|
|
3
|
+
return {
|
|
4
|
+
name: "HAML",
|
|
5
|
+
case_insensitive: true,
|
|
6
|
+
contains: [
|
|
7
|
+
{
|
|
8
|
+
className: "meta",
|
|
9
|
+
begin: "^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",
|
|
10
|
+
relevance: 10
|
|
11
|
+
},
|
|
12
|
+
hljs.COMMENT("^\\s*(!=#|=#|-#|/).*$", null, { relevance: 0 }),
|
|
13
|
+
{
|
|
14
|
+
begin: "^\\s*(-|=|!=)(?!#)",
|
|
15
|
+
end: /$/,
|
|
16
|
+
subLanguage: "ruby",
|
|
17
|
+
excludeBegin: true,
|
|
18
|
+
excludeEnd: true
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
className: "tag",
|
|
22
|
+
begin: "^\\s*%",
|
|
23
|
+
contains: [
|
|
24
|
+
{
|
|
25
|
+
className: "selector-tag",
|
|
26
|
+
begin: "\\w+"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
className: "selector-id",
|
|
30
|
+
begin: "#[\\w-]+"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
className: "selector-class",
|
|
34
|
+
begin: "\\.[\\w-]+"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
begin: /\{\s*/,
|
|
38
|
+
end: /\s*\}/,
|
|
39
|
+
contains: [{
|
|
40
|
+
begin: ":\\w+\\s*=>",
|
|
41
|
+
end: ",\\s+",
|
|
42
|
+
returnBegin: true,
|
|
43
|
+
endsWithParent: true,
|
|
44
|
+
contains: [
|
|
45
|
+
{
|
|
46
|
+
className: "attr",
|
|
47
|
+
begin: ":\\w+"
|
|
48
|
+
},
|
|
49
|
+
hljs.APOS_STRING_MODE,
|
|
50
|
+
hljs.QUOTE_STRING_MODE,
|
|
51
|
+
{
|
|
52
|
+
begin: "\\w+",
|
|
53
|
+
relevance: 0
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
begin: "\\(\\s*",
|
|
60
|
+
end: "\\s*\\)",
|
|
61
|
+
excludeEnd: true,
|
|
62
|
+
contains: [{
|
|
63
|
+
begin: "\\w+\\s*=",
|
|
64
|
+
end: "\\s+",
|
|
65
|
+
returnBegin: true,
|
|
66
|
+
endsWithParent: true,
|
|
67
|
+
contains: [
|
|
68
|
+
{
|
|
69
|
+
className: "attr",
|
|
70
|
+
begin: "\\w+",
|
|
71
|
+
relevance: 0
|
|
72
|
+
},
|
|
73
|
+
hljs.APOS_STRING_MODE,
|
|
74
|
+
hljs.QUOTE_STRING_MODE,
|
|
75
|
+
{
|
|
76
|
+
begin: "\\w+",
|
|
77
|
+
relevance: 0
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}]
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{ begin: "^\\s*[=~]\\s*" },
|
|
85
|
+
{
|
|
86
|
+
begin: /#\{/,
|
|
87
|
+
end: /\}/,
|
|
88
|
+
subLanguage: "ruby",
|
|
89
|
+
excludeBegin: true,
|
|
90
|
+
excludeEnd: true
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
export { haml as default };
|