vue-files-preview-inno
Version:
A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.
196 lines (195 loc) • 3.36 kB
JavaScript
var n, a;
function m() {
if (a) return n;
a = 1;
function r(e) {
const i = [
"if",
"then",
"else",
"do",
"while",
"until",
"for",
"loop",
"import",
"with",
"is",
"as",
"where",
"when",
"by",
"data",
"constant",
"integer",
"real",
"text",
"name",
"boolean",
"symbol",
"infix",
"prefix",
"postfix",
"block",
"tree"
], s = [
"in",
"mod",
"rem",
"and",
"or",
"xor",
"not",
"abs",
"sign",
"floor",
"ceil",
"sqrt",
"sin",
"cos",
"tan",
"asin",
"acos",
"atan",
"exp",
"expm1",
"log",
"log2",
"log10",
"log1p",
"pi",
"at",
"text_length",
"text_range",
"text_find",
"text_replace",
"contains",
"page",
"slide",
"basic_slide",
"title_slide",
"title",
"subtitle",
"fade_in",
"fade_out",
"fade_at",
"clear_color",
"color",
"line_color",
"line_width",
"texture_wrap",
"texture_transform",
"texture",
"scale_?x",
"scale_?y",
"scale_?z?",
"translate_?x",
"translate_?y",
"translate_?z?",
"rotate_?x",
"rotate_?y",
"rotate_?z?",
"rectangle",
"circle",
"ellipse",
"sphere",
"path",
"line_to",
"move_to",
"quad_to",
"curve_to",
"theme",
"background",
"contents",
"locally",
"time",
"mouse_?x",
"mouse_?y",
"mouse_buttons"
], l = [
"ObjectLoader",
"Animate",
"MovieCredits",
"Slides",
"Filters",
"Shading",
"Materials",
"LensFlare",
"Mapping",
"VLCAudioVideo",
"StereoDecoder",
"PointCloud",
"NetworkAccess",
"RemoteControl",
"RegExp",
"ChromaKey",
"Snowfall",
"NodeJS",
"Speech",
"Charts"
], t = {
$pattern: /[a-zA-Z][a-zA-Z0-9_?]*/,
keyword: i,
literal: [
"true",
"false",
"nil"
],
built_in: s.concat(l)
}, o = {
className: "string",
begin: '"',
end: '"',
illegal: "\\n"
}, _ = {
className: "string",
begin: "'",
end: "'",
illegal: "\\n"
}, c = {
className: "string",
begin: "<<",
end: ">>"
}, d = {
className: "number",
begin: "[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"
}, u = {
beginKeywords: "import",
end: "$",
keywords: t,
contains: [o]
}, g = {
className: "function",
begin: /[a-z][^\n]*->/,
returnBegin: !0,
end: /->/,
contains: [
e.inherit(e.TITLE_MODE, { starts: {
endsWithParent: !0,
keywords: t
} })
]
};
return {
name: "XL",
aliases: ["tao"],
keywords: t,
contains: [
e.C_LINE_COMMENT_MODE,
e.C_BLOCK_COMMENT_MODE,
o,
_,
c,
g,
u,
d,
e.NUMBER_MODE
]
};
}
return n = r, n;
}
export {
m as __require
};
//# sourceMappingURL=xl.mjs.map