@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,291 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/coffeescript.js
|
|
2
|
+
var KEYWORDS = [
|
|
3
|
+
"as",
|
|
4
|
+
"in",
|
|
5
|
+
"of",
|
|
6
|
+
"if",
|
|
7
|
+
"for",
|
|
8
|
+
"while",
|
|
9
|
+
"finally",
|
|
10
|
+
"var",
|
|
11
|
+
"new",
|
|
12
|
+
"function",
|
|
13
|
+
"do",
|
|
14
|
+
"return",
|
|
15
|
+
"void",
|
|
16
|
+
"else",
|
|
17
|
+
"break",
|
|
18
|
+
"catch",
|
|
19
|
+
"instanceof",
|
|
20
|
+
"with",
|
|
21
|
+
"throw",
|
|
22
|
+
"case",
|
|
23
|
+
"default",
|
|
24
|
+
"try",
|
|
25
|
+
"switch",
|
|
26
|
+
"continue",
|
|
27
|
+
"typeof",
|
|
28
|
+
"delete",
|
|
29
|
+
"let",
|
|
30
|
+
"yield",
|
|
31
|
+
"const",
|
|
32
|
+
"class",
|
|
33
|
+
"debugger",
|
|
34
|
+
"async",
|
|
35
|
+
"await",
|
|
36
|
+
"static",
|
|
37
|
+
"import",
|
|
38
|
+
"from",
|
|
39
|
+
"export",
|
|
40
|
+
"extends",
|
|
41
|
+
"using"
|
|
42
|
+
];
|
|
43
|
+
var LITERALS = [
|
|
44
|
+
"true",
|
|
45
|
+
"false",
|
|
46
|
+
"null",
|
|
47
|
+
"undefined",
|
|
48
|
+
"NaN",
|
|
49
|
+
"Infinity"
|
|
50
|
+
];
|
|
51
|
+
var BUILT_INS = [].concat([
|
|
52
|
+
"setInterval",
|
|
53
|
+
"setTimeout",
|
|
54
|
+
"clearInterval",
|
|
55
|
+
"clearTimeout",
|
|
56
|
+
"require",
|
|
57
|
+
"exports",
|
|
58
|
+
"eval",
|
|
59
|
+
"isFinite",
|
|
60
|
+
"isNaN",
|
|
61
|
+
"parseFloat",
|
|
62
|
+
"parseInt",
|
|
63
|
+
"decodeURI",
|
|
64
|
+
"decodeURIComponent",
|
|
65
|
+
"encodeURI",
|
|
66
|
+
"encodeURIComponent",
|
|
67
|
+
"escape",
|
|
68
|
+
"unescape"
|
|
69
|
+
], [
|
|
70
|
+
"Object",
|
|
71
|
+
"Function",
|
|
72
|
+
"Boolean",
|
|
73
|
+
"Symbol",
|
|
74
|
+
"Math",
|
|
75
|
+
"Date",
|
|
76
|
+
"Number",
|
|
77
|
+
"BigInt",
|
|
78
|
+
"String",
|
|
79
|
+
"RegExp",
|
|
80
|
+
"Array",
|
|
81
|
+
"Float32Array",
|
|
82
|
+
"Float64Array",
|
|
83
|
+
"Int8Array",
|
|
84
|
+
"Uint8Array",
|
|
85
|
+
"Uint8ClampedArray",
|
|
86
|
+
"Int16Array",
|
|
87
|
+
"Int32Array",
|
|
88
|
+
"Uint16Array",
|
|
89
|
+
"Uint32Array",
|
|
90
|
+
"BigInt64Array",
|
|
91
|
+
"BigUint64Array",
|
|
92
|
+
"Set",
|
|
93
|
+
"Map",
|
|
94
|
+
"WeakSet",
|
|
95
|
+
"WeakMap",
|
|
96
|
+
"ArrayBuffer",
|
|
97
|
+
"SharedArrayBuffer",
|
|
98
|
+
"Atomics",
|
|
99
|
+
"DataView",
|
|
100
|
+
"JSON",
|
|
101
|
+
"Promise",
|
|
102
|
+
"Generator",
|
|
103
|
+
"GeneratorFunction",
|
|
104
|
+
"AsyncFunction",
|
|
105
|
+
"Reflect",
|
|
106
|
+
"Proxy",
|
|
107
|
+
"Intl",
|
|
108
|
+
"WebAssembly"
|
|
109
|
+
], [
|
|
110
|
+
"Error",
|
|
111
|
+
"EvalError",
|
|
112
|
+
"InternalError",
|
|
113
|
+
"RangeError",
|
|
114
|
+
"ReferenceError",
|
|
115
|
+
"SyntaxError",
|
|
116
|
+
"TypeError",
|
|
117
|
+
"URIError"
|
|
118
|
+
]);
|
|
119
|
+
/** @type LanguageFn */
|
|
120
|
+
function coffeescript(hljs) {
|
|
121
|
+
const COFFEE_BUILT_INS = ["npm", "print"];
|
|
122
|
+
const COFFEE_LITERALS = [
|
|
123
|
+
"yes",
|
|
124
|
+
"no",
|
|
125
|
+
"on",
|
|
126
|
+
"off"
|
|
127
|
+
];
|
|
128
|
+
const COFFEE_KEYWORDS = [
|
|
129
|
+
"then",
|
|
130
|
+
"unless",
|
|
131
|
+
"until",
|
|
132
|
+
"loop",
|
|
133
|
+
"by",
|
|
134
|
+
"when",
|
|
135
|
+
"and",
|
|
136
|
+
"or",
|
|
137
|
+
"is",
|
|
138
|
+
"isnt",
|
|
139
|
+
"not"
|
|
140
|
+
];
|
|
141
|
+
const NOT_VALID_KEYWORDS = [
|
|
142
|
+
"var",
|
|
143
|
+
"const",
|
|
144
|
+
"let",
|
|
145
|
+
"function",
|
|
146
|
+
"static"
|
|
147
|
+
];
|
|
148
|
+
const excluding = (list) => (kw) => !list.includes(kw);
|
|
149
|
+
const KEYWORDS$1 = {
|
|
150
|
+
keyword: KEYWORDS.concat(COFFEE_KEYWORDS).filter(excluding(NOT_VALID_KEYWORDS)),
|
|
151
|
+
literal: LITERALS.concat(COFFEE_LITERALS),
|
|
152
|
+
built_in: BUILT_INS.concat(COFFEE_BUILT_INS)
|
|
153
|
+
};
|
|
154
|
+
const JS_IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*";
|
|
155
|
+
const SUBST = {
|
|
156
|
+
className: "subst",
|
|
157
|
+
begin: /#\{/,
|
|
158
|
+
end: /\}/,
|
|
159
|
+
keywords: KEYWORDS$1
|
|
160
|
+
};
|
|
161
|
+
const EXPRESSIONS = [
|
|
162
|
+
hljs.BINARY_NUMBER_MODE,
|
|
163
|
+
hljs.inherit(hljs.C_NUMBER_MODE, { starts: {
|
|
164
|
+
end: "(\\s*/)?",
|
|
165
|
+
relevance: 0
|
|
166
|
+
} }),
|
|
167
|
+
{
|
|
168
|
+
className: "string",
|
|
169
|
+
variants: [
|
|
170
|
+
{
|
|
171
|
+
begin: /'''/,
|
|
172
|
+
end: /'''/,
|
|
173
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
begin: /'/,
|
|
177
|
+
end: /'/,
|
|
178
|
+
contains: [hljs.BACKSLASH_ESCAPE]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
begin: /"""/,
|
|
182
|
+
end: /"""/,
|
|
183
|
+
contains: [hljs.BACKSLASH_ESCAPE, SUBST]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
begin: /"/,
|
|
187
|
+
end: /"/,
|
|
188
|
+
contains: [hljs.BACKSLASH_ESCAPE, SUBST]
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
className: "regexp",
|
|
194
|
+
variants: [
|
|
195
|
+
{
|
|
196
|
+
begin: "///",
|
|
197
|
+
end: "///",
|
|
198
|
+
contains: [SUBST, hljs.HASH_COMMENT_MODE]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
begin: "//[gim]{0,3}(?=\\W)",
|
|
202
|
+
relevance: 0
|
|
203
|
+
},
|
|
204
|
+
{ begin: /\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/ }
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
{ begin: "@" + JS_IDENT_RE },
|
|
208
|
+
{
|
|
209
|
+
subLanguage: "javascript",
|
|
210
|
+
excludeBegin: true,
|
|
211
|
+
excludeEnd: true,
|
|
212
|
+
variants: [{
|
|
213
|
+
begin: "```",
|
|
214
|
+
end: "```"
|
|
215
|
+
}, {
|
|
216
|
+
begin: "`",
|
|
217
|
+
end: "`"
|
|
218
|
+
}]
|
|
219
|
+
}
|
|
220
|
+
];
|
|
221
|
+
SUBST.contains = EXPRESSIONS;
|
|
222
|
+
const TITLE = hljs.inherit(hljs.TITLE_MODE, { begin: JS_IDENT_RE });
|
|
223
|
+
const POSSIBLE_PARAMS_RE = "(\\(.*\\)\\s*)?\\B[-=]>";
|
|
224
|
+
const PARAMS = {
|
|
225
|
+
className: "params",
|
|
226
|
+
begin: "\\([^\\(]",
|
|
227
|
+
returnBegin: true,
|
|
228
|
+
contains: [{
|
|
229
|
+
begin: /\(/,
|
|
230
|
+
end: /\)/,
|
|
231
|
+
keywords: KEYWORDS$1,
|
|
232
|
+
contains: ["self"].concat(EXPRESSIONS)
|
|
233
|
+
}]
|
|
234
|
+
};
|
|
235
|
+
const CLASS_DEFINITION = {
|
|
236
|
+
variants: [{ match: [
|
|
237
|
+
/class\s+/,
|
|
238
|
+
JS_IDENT_RE,
|
|
239
|
+
/\s+extends\s+/,
|
|
240
|
+
JS_IDENT_RE
|
|
241
|
+
] }, { match: [/class\s+/, JS_IDENT_RE] }],
|
|
242
|
+
scope: {
|
|
243
|
+
2: "title.class",
|
|
244
|
+
4: "title.class.inherited"
|
|
245
|
+
},
|
|
246
|
+
keywords: KEYWORDS$1
|
|
247
|
+
};
|
|
248
|
+
return {
|
|
249
|
+
name: "CoffeeScript",
|
|
250
|
+
aliases: [
|
|
251
|
+
"coffee",
|
|
252
|
+
"cson",
|
|
253
|
+
"iced"
|
|
254
|
+
],
|
|
255
|
+
keywords: KEYWORDS$1,
|
|
256
|
+
illegal: /\/\*/,
|
|
257
|
+
contains: [
|
|
258
|
+
...EXPRESSIONS,
|
|
259
|
+
hljs.COMMENT("###", "###"),
|
|
260
|
+
hljs.HASH_COMMENT_MODE,
|
|
261
|
+
{
|
|
262
|
+
className: "function",
|
|
263
|
+
begin: "^\\s*" + JS_IDENT_RE + "\\s*=\\s*" + POSSIBLE_PARAMS_RE,
|
|
264
|
+
end: "[-=]>",
|
|
265
|
+
returnBegin: true,
|
|
266
|
+
contains: [TITLE, PARAMS]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
begin: /[:\(,=]\s*/,
|
|
270
|
+
relevance: 0,
|
|
271
|
+
contains: [{
|
|
272
|
+
className: "function",
|
|
273
|
+
begin: POSSIBLE_PARAMS_RE,
|
|
274
|
+
end: "[-=]>",
|
|
275
|
+
returnBegin: true,
|
|
276
|
+
contains: [PARAMS]
|
|
277
|
+
}]
|
|
278
|
+
},
|
|
279
|
+
CLASS_DEFINITION,
|
|
280
|
+
{
|
|
281
|
+
begin: JS_IDENT_RE + ":",
|
|
282
|
+
end: ":",
|
|
283
|
+
returnBegin: true,
|
|
284
|
+
returnEnd: true,
|
|
285
|
+
relevance: 0
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
//#endregion
|
|
291
|
+
export { coffeescript as default };
|
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/coq.js
|
|
2
|
+
/** @type LanguageFn */
|
|
3
|
+
function coq(hljs) {
|
|
4
|
+
return {
|
|
5
|
+
name: "Coq",
|
|
6
|
+
keywords: {
|
|
7
|
+
keyword: [
|
|
8
|
+
"_|0",
|
|
9
|
+
"as",
|
|
10
|
+
"at",
|
|
11
|
+
"cofix",
|
|
12
|
+
"else",
|
|
13
|
+
"end",
|
|
14
|
+
"exists",
|
|
15
|
+
"exists2",
|
|
16
|
+
"fix",
|
|
17
|
+
"for",
|
|
18
|
+
"forall",
|
|
19
|
+
"fun",
|
|
20
|
+
"if",
|
|
21
|
+
"IF",
|
|
22
|
+
"in",
|
|
23
|
+
"let",
|
|
24
|
+
"match",
|
|
25
|
+
"mod",
|
|
26
|
+
"Prop",
|
|
27
|
+
"return",
|
|
28
|
+
"Set",
|
|
29
|
+
"then",
|
|
30
|
+
"Type",
|
|
31
|
+
"using",
|
|
32
|
+
"where",
|
|
33
|
+
"with",
|
|
34
|
+
"Abort",
|
|
35
|
+
"About",
|
|
36
|
+
"Add",
|
|
37
|
+
"Admit",
|
|
38
|
+
"Admitted",
|
|
39
|
+
"All",
|
|
40
|
+
"Arguments",
|
|
41
|
+
"Assumptions",
|
|
42
|
+
"Axiom",
|
|
43
|
+
"Back",
|
|
44
|
+
"BackTo",
|
|
45
|
+
"Backtrack",
|
|
46
|
+
"Bind",
|
|
47
|
+
"Blacklist",
|
|
48
|
+
"Canonical",
|
|
49
|
+
"Cd",
|
|
50
|
+
"Check",
|
|
51
|
+
"Class",
|
|
52
|
+
"Classes",
|
|
53
|
+
"Close",
|
|
54
|
+
"Coercion",
|
|
55
|
+
"Coercions",
|
|
56
|
+
"CoFixpoint",
|
|
57
|
+
"CoInductive",
|
|
58
|
+
"Collection",
|
|
59
|
+
"Combined",
|
|
60
|
+
"Compute",
|
|
61
|
+
"Conjecture",
|
|
62
|
+
"Conjectures",
|
|
63
|
+
"Constant",
|
|
64
|
+
"constr",
|
|
65
|
+
"Constraint",
|
|
66
|
+
"Constructors",
|
|
67
|
+
"Context",
|
|
68
|
+
"Corollary",
|
|
69
|
+
"CreateHintDb",
|
|
70
|
+
"Cut",
|
|
71
|
+
"Declare",
|
|
72
|
+
"Defined",
|
|
73
|
+
"Definition",
|
|
74
|
+
"Delimit",
|
|
75
|
+
"Dependencies",
|
|
76
|
+
"Dependent",
|
|
77
|
+
"Derive",
|
|
78
|
+
"Drop",
|
|
79
|
+
"eauto",
|
|
80
|
+
"End",
|
|
81
|
+
"Equality",
|
|
82
|
+
"Eval",
|
|
83
|
+
"Example",
|
|
84
|
+
"Existential",
|
|
85
|
+
"Existentials",
|
|
86
|
+
"Existing",
|
|
87
|
+
"Export",
|
|
88
|
+
"exporting",
|
|
89
|
+
"Extern",
|
|
90
|
+
"Extract",
|
|
91
|
+
"Extraction",
|
|
92
|
+
"Fact",
|
|
93
|
+
"Field",
|
|
94
|
+
"Fields",
|
|
95
|
+
"File",
|
|
96
|
+
"Fixpoint",
|
|
97
|
+
"Focus",
|
|
98
|
+
"for",
|
|
99
|
+
"From",
|
|
100
|
+
"Function",
|
|
101
|
+
"Functional",
|
|
102
|
+
"Generalizable",
|
|
103
|
+
"Global",
|
|
104
|
+
"Goal",
|
|
105
|
+
"Grab",
|
|
106
|
+
"Grammar",
|
|
107
|
+
"Graph",
|
|
108
|
+
"Guarded",
|
|
109
|
+
"Heap",
|
|
110
|
+
"Hint",
|
|
111
|
+
"HintDb",
|
|
112
|
+
"Hints",
|
|
113
|
+
"Hypotheses",
|
|
114
|
+
"Hypothesis",
|
|
115
|
+
"ident",
|
|
116
|
+
"Identity",
|
|
117
|
+
"If",
|
|
118
|
+
"Immediate",
|
|
119
|
+
"Implicit",
|
|
120
|
+
"Import",
|
|
121
|
+
"Include",
|
|
122
|
+
"Inductive",
|
|
123
|
+
"Infix",
|
|
124
|
+
"Info",
|
|
125
|
+
"Initial",
|
|
126
|
+
"Inline",
|
|
127
|
+
"Inspect",
|
|
128
|
+
"Instance",
|
|
129
|
+
"Instances",
|
|
130
|
+
"Intro",
|
|
131
|
+
"Intros",
|
|
132
|
+
"Inversion",
|
|
133
|
+
"Inversion_clear",
|
|
134
|
+
"Language",
|
|
135
|
+
"Left",
|
|
136
|
+
"Lemma",
|
|
137
|
+
"Let",
|
|
138
|
+
"Libraries",
|
|
139
|
+
"Library",
|
|
140
|
+
"Load",
|
|
141
|
+
"LoadPath",
|
|
142
|
+
"Local",
|
|
143
|
+
"Locate",
|
|
144
|
+
"Ltac",
|
|
145
|
+
"ML",
|
|
146
|
+
"Mode",
|
|
147
|
+
"Module",
|
|
148
|
+
"Modules",
|
|
149
|
+
"Monomorphic",
|
|
150
|
+
"Morphism",
|
|
151
|
+
"Next",
|
|
152
|
+
"NoInline",
|
|
153
|
+
"Notation",
|
|
154
|
+
"Obligation",
|
|
155
|
+
"Obligations",
|
|
156
|
+
"Opaque",
|
|
157
|
+
"Open",
|
|
158
|
+
"Optimize",
|
|
159
|
+
"Options",
|
|
160
|
+
"Parameter",
|
|
161
|
+
"Parameters",
|
|
162
|
+
"Parametric",
|
|
163
|
+
"Path",
|
|
164
|
+
"Paths",
|
|
165
|
+
"pattern",
|
|
166
|
+
"Polymorphic",
|
|
167
|
+
"Preterm",
|
|
168
|
+
"Print",
|
|
169
|
+
"Printing",
|
|
170
|
+
"Program",
|
|
171
|
+
"Projections",
|
|
172
|
+
"Proof",
|
|
173
|
+
"Proposition",
|
|
174
|
+
"Pwd",
|
|
175
|
+
"Qed",
|
|
176
|
+
"Quit",
|
|
177
|
+
"Rec",
|
|
178
|
+
"Record",
|
|
179
|
+
"Recursive",
|
|
180
|
+
"Redirect",
|
|
181
|
+
"Relation",
|
|
182
|
+
"Remark",
|
|
183
|
+
"Remove",
|
|
184
|
+
"Require",
|
|
185
|
+
"Reserved",
|
|
186
|
+
"Reset",
|
|
187
|
+
"Resolve",
|
|
188
|
+
"Restart",
|
|
189
|
+
"Rewrite",
|
|
190
|
+
"Right",
|
|
191
|
+
"Ring",
|
|
192
|
+
"Rings",
|
|
193
|
+
"Save",
|
|
194
|
+
"Scheme",
|
|
195
|
+
"Scope",
|
|
196
|
+
"Scopes",
|
|
197
|
+
"Script",
|
|
198
|
+
"Search",
|
|
199
|
+
"SearchAbout",
|
|
200
|
+
"SearchHead",
|
|
201
|
+
"SearchPattern",
|
|
202
|
+
"SearchRewrite",
|
|
203
|
+
"Section",
|
|
204
|
+
"Separate",
|
|
205
|
+
"Set",
|
|
206
|
+
"Setoid",
|
|
207
|
+
"Show",
|
|
208
|
+
"Solve",
|
|
209
|
+
"Sorted",
|
|
210
|
+
"Step",
|
|
211
|
+
"Strategies",
|
|
212
|
+
"Strategy",
|
|
213
|
+
"Structure",
|
|
214
|
+
"SubClass",
|
|
215
|
+
"Table",
|
|
216
|
+
"Tables",
|
|
217
|
+
"Tactic",
|
|
218
|
+
"Term",
|
|
219
|
+
"Test",
|
|
220
|
+
"Theorem",
|
|
221
|
+
"Time",
|
|
222
|
+
"Timeout",
|
|
223
|
+
"Transparent",
|
|
224
|
+
"Type",
|
|
225
|
+
"Typeclasses",
|
|
226
|
+
"Types",
|
|
227
|
+
"Undelimit",
|
|
228
|
+
"Undo",
|
|
229
|
+
"Unfocus",
|
|
230
|
+
"Unfocused",
|
|
231
|
+
"Unfold",
|
|
232
|
+
"Universe",
|
|
233
|
+
"Universes",
|
|
234
|
+
"Unset",
|
|
235
|
+
"Unshelve",
|
|
236
|
+
"using",
|
|
237
|
+
"Variable",
|
|
238
|
+
"Variables",
|
|
239
|
+
"Variant",
|
|
240
|
+
"Verbose",
|
|
241
|
+
"Visibility",
|
|
242
|
+
"where",
|
|
243
|
+
"with"
|
|
244
|
+
],
|
|
245
|
+
built_in: [
|
|
246
|
+
"abstract",
|
|
247
|
+
"absurd",
|
|
248
|
+
"admit",
|
|
249
|
+
"after",
|
|
250
|
+
"apply",
|
|
251
|
+
"as",
|
|
252
|
+
"assert",
|
|
253
|
+
"assumption",
|
|
254
|
+
"at",
|
|
255
|
+
"auto",
|
|
256
|
+
"autorewrite",
|
|
257
|
+
"autounfold",
|
|
258
|
+
"before",
|
|
259
|
+
"bottom",
|
|
260
|
+
"btauto",
|
|
261
|
+
"by",
|
|
262
|
+
"case",
|
|
263
|
+
"case_eq",
|
|
264
|
+
"cbn",
|
|
265
|
+
"cbv",
|
|
266
|
+
"change",
|
|
267
|
+
"classical_left",
|
|
268
|
+
"classical_right",
|
|
269
|
+
"clear",
|
|
270
|
+
"clearbody",
|
|
271
|
+
"cofix",
|
|
272
|
+
"compare",
|
|
273
|
+
"compute",
|
|
274
|
+
"congruence",
|
|
275
|
+
"constr_eq",
|
|
276
|
+
"constructor",
|
|
277
|
+
"contradict",
|
|
278
|
+
"contradiction",
|
|
279
|
+
"cut",
|
|
280
|
+
"cutrewrite",
|
|
281
|
+
"cycle",
|
|
282
|
+
"decide",
|
|
283
|
+
"decompose",
|
|
284
|
+
"dependent",
|
|
285
|
+
"destruct",
|
|
286
|
+
"destruction",
|
|
287
|
+
"dintuition",
|
|
288
|
+
"discriminate",
|
|
289
|
+
"discrR",
|
|
290
|
+
"do",
|
|
291
|
+
"double",
|
|
292
|
+
"dtauto",
|
|
293
|
+
"eapply",
|
|
294
|
+
"eassumption",
|
|
295
|
+
"eauto",
|
|
296
|
+
"ecase",
|
|
297
|
+
"econstructor",
|
|
298
|
+
"edestruct",
|
|
299
|
+
"ediscriminate",
|
|
300
|
+
"eelim",
|
|
301
|
+
"eexact",
|
|
302
|
+
"eexists",
|
|
303
|
+
"einduction",
|
|
304
|
+
"einjection",
|
|
305
|
+
"eleft",
|
|
306
|
+
"elim",
|
|
307
|
+
"elimtype",
|
|
308
|
+
"enough",
|
|
309
|
+
"equality",
|
|
310
|
+
"erewrite",
|
|
311
|
+
"eright",
|
|
312
|
+
"esimplify_eq",
|
|
313
|
+
"esplit",
|
|
314
|
+
"evar",
|
|
315
|
+
"exact",
|
|
316
|
+
"exactly_once",
|
|
317
|
+
"exfalso",
|
|
318
|
+
"exists",
|
|
319
|
+
"f_equal",
|
|
320
|
+
"fail",
|
|
321
|
+
"field",
|
|
322
|
+
"field_simplify",
|
|
323
|
+
"field_simplify_eq",
|
|
324
|
+
"first",
|
|
325
|
+
"firstorder",
|
|
326
|
+
"fix",
|
|
327
|
+
"fold",
|
|
328
|
+
"fourier",
|
|
329
|
+
"functional",
|
|
330
|
+
"generalize",
|
|
331
|
+
"generalizing",
|
|
332
|
+
"gfail",
|
|
333
|
+
"give_up",
|
|
334
|
+
"has_evar",
|
|
335
|
+
"hnf",
|
|
336
|
+
"idtac",
|
|
337
|
+
"in",
|
|
338
|
+
"induction",
|
|
339
|
+
"injection",
|
|
340
|
+
"instantiate",
|
|
341
|
+
"intro",
|
|
342
|
+
"intro_pattern",
|
|
343
|
+
"intros",
|
|
344
|
+
"intuition",
|
|
345
|
+
"inversion",
|
|
346
|
+
"inversion_clear",
|
|
347
|
+
"is_evar",
|
|
348
|
+
"is_var",
|
|
349
|
+
"lapply",
|
|
350
|
+
"lazy",
|
|
351
|
+
"left",
|
|
352
|
+
"lia",
|
|
353
|
+
"lra",
|
|
354
|
+
"move",
|
|
355
|
+
"native_compute",
|
|
356
|
+
"nia",
|
|
357
|
+
"nsatz",
|
|
358
|
+
"omega",
|
|
359
|
+
"once",
|
|
360
|
+
"pattern",
|
|
361
|
+
"pose",
|
|
362
|
+
"progress",
|
|
363
|
+
"proof",
|
|
364
|
+
"psatz",
|
|
365
|
+
"quote",
|
|
366
|
+
"record",
|
|
367
|
+
"red",
|
|
368
|
+
"refine",
|
|
369
|
+
"reflexivity",
|
|
370
|
+
"remember",
|
|
371
|
+
"rename",
|
|
372
|
+
"repeat",
|
|
373
|
+
"replace",
|
|
374
|
+
"revert",
|
|
375
|
+
"revgoals",
|
|
376
|
+
"rewrite",
|
|
377
|
+
"rewrite_strat",
|
|
378
|
+
"right",
|
|
379
|
+
"ring",
|
|
380
|
+
"ring_simplify",
|
|
381
|
+
"rtauto",
|
|
382
|
+
"set",
|
|
383
|
+
"setoid_reflexivity",
|
|
384
|
+
"setoid_replace",
|
|
385
|
+
"setoid_rewrite",
|
|
386
|
+
"setoid_symmetry",
|
|
387
|
+
"setoid_transitivity",
|
|
388
|
+
"shelve",
|
|
389
|
+
"shelve_unifiable",
|
|
390
|
+
"simpl",
|
|
391
|
+
"simple",
|
|
392
|
+
"simplify_eq",
|
|
393
|
+
"solve",
|
|
394
|
+
"specialize",
|
|
395
|
+
"split",
|
|
396
|
+
"split_Rabs",
|
|
397
|
+
"split_Rmult",
|
|
398
|
+
"stepl",
|
|
399
|
+
"stepr",
|
|
400
|
+
"subst",
|
|
401
|
+
"sum",
|
|
402
|
+
"swap",
|
|
403
|
+
"symmetry",
|
|
404
|
+
"tactic",
|
|
405
|
+
"tauto",
|
|
406
|
+
"time",
|
|
407
|
+
"timeout",
|
|
408
|
+
"top",
|
|
409
|
+
"transitivity",
|
|
410
|
+
"trivial",
|
|
411
|
+
"try",
|
|
412
|
+
"tryif",
|
|
413
|
+
"unfold",
|
|
414
|
+
"unify",
|
|
415
|
+
"until",
|
|
416
|
+
"using",
|
|
417
|
+
"vm_compute",
|
|
418
|
+
"with"
|
|
419
|
+
]
|
|
420
|
+
},
|
|
421
|
+
contains: [
|
|
422
|
+
hljs.QUOTE_STRING_MODE,
|
|
423
|
+
hljs.COMMENT("\\(\\*", "\\*\\)"),
|
|
424
|
+
hljs.C_NUMBER_MODE,
|
|
425
|
+
{
|
|
426
|
+
className: "type",
|
|
427
|
+
excludeBegin: true,
|
|
428
|
+
begin: "\\|\\s*",
|
|
429
|
+
end: "\\w+"
|
|
430
|
+
},
|
|
431
|
+
{ begin: /[-=]>/ }
|
|
432
|
+
]
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
//#endregion
|
|
436
|
+
export { coq as default };
|