vue-files-preview-inno
Version:
A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.
247 lines (246 loc) • 4.62 kB
JavaScript
var t, s;
function p() {
if (s) return t;
s = 1;
function o(e) {
const n = [
"exports",
"register",
"file",
"shl",
"array",
"record",
"property",
"for",
"mod",
"while",
"set",
"ally",
"label",
"uses",
"raise",
"not",
"stored",
"class",
"safecall",
"var",
"interface",
"or",
"private",
"static",
"exit",
"index",
"inherited",
"to",
"else",
"stdcall",
"override",
"shr",
"asm",
"far",
"resourcestring",
"finalization",
"packed",
"virtual",
"out",
"and",
"protected",
"library",
"do",
"xorwrite",
"goto",
"near",
"function",
"end",
"div",
"overload",
"object",
"unit",
"begin",
"string",
"on",
"inline",
"repeat",
"until",
"destructor",
"write",
"message",
"program",
"with",
"read",
"initialization",
"except",
"default",
"nil",
"if",
"case",
"cdecl",
"in",
"downto",
"threadvar",
"of",
"try",
"pascal",
"const",
"external",
"constructor",
"type",
"public",
"then",
"implementation",
"finally",
"published",
"procedure",
"absolute",
"reintroduce",
"operator",
"as",
"is",
"abstract",
"alias",
"assembler",
"bitpacked",
"break",
"continue",
"cppdecl",
"cvar",
"enumerator",
"experimental",
"platform",
"deprecated",
"unimplemented",
"dynamic",
"export",
"far16",
"forward",
"generic",
"helper",
"implements",
"interrupt",
"iochecks",
"local",
"name",
"nodefault",
"noreturn",
"nostackframe",
"oldfpccall",
"otherwise",
"saveregisters",
"softfloat",
"specialize",
"strict",
"unaligned",
"varargs"
], a = [
e.C_LINE_COMMENT_MODE,
e.COMMENT(/\{/, /\}/, { relevance: 0 }),
e.COMMENT(/\(\*/, /\*\)/, { relevance: 10 })
], r = {
className: "meta",
variants: [
{
begin: /\{\$/,
end: /\}/
},
{
begin: /\(\*\$/,
end: /\*\)/
}
]
}, i = {
className: "string",
begin: /'/,
end: /'/,
contains: [{ begin: /''/ }]
}, l = {
className: "number",
relevance: 0,
// Source: https://www.freepascal.org/docs-html/ref/refse6.html
variants: [
{
// Regular numbers, e.g., 123, 123.456.
match: /\b\d[\d_]*(\.\d[\d_]*)?/
},
{
// Hexadecimal notation, e.g., $7F.
match: /\$[\dA-Fa-f_]+/
},
{
// Hexadecimal literal with no digits
match: /\$/,
relevance: 0
},
{
// Octal notation, e.g., &42.
match: /&[0-7][0-7_]*/
},
{
// Binary notation, e.g., %1010.
match: /%[01_]+/
},
{
// Binary literal with no digits
match: /%/,
relevance: 0
}
]
}, c = {
className: "string",
variants: [
{ match: /#\d[\d_]*/ },
{ match: /#\$[\dA-Fa-f][\dA-Fa-f_]*/ },
{ match: /#&[0-7][0-7_]*/ },
{ match: /#%[01][01_]*/ }
]
}, d = {
begin: e.IDENT_RE + "\\s*=\\s*class\\s*\\(",
returnBegin: !0,
contains: [e.TITLE_MODE]
}, u = {
className: "function",
beginKeywords: "function constructor destructor procedure",
end: /[:;]/,
keywords: "function constructor|10 destructor|10 procedure|10",
contains: [
e.TITLE_MODE,
{
className: "params",
begin: /\(/,
end: /\)/,
keywords: n,
contains: [
i,
c,
r
].concat(a)
},
r
].concat(a)
};
return {
name: "Delphi",
aliases: [
"dpr",
"dfm",
"pas",
"pascal"
],
case_insensitive: !0,
keywords: n,
illegal: /"|\$[G-Zg-z]|\/\*|<\/|\|/,
contains: [
i,
c,
l,
d,
u,
r
].concat(a)
};
}
return t = o, t;
}
export {
p as __require
};
//# sourceMappingURL=delphi.mjs.map