UNPKG

vue-files-preview-inno

Version:

A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.

167 lines (166 loc) 4.29 kB
var n, a; function c() { if (a) return n; a = 1; function t(e) { const s = "[a-zA-Z_$][a-zA-Z0-9_$]*", i = /(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/; return { name: "Haxe", aliases: ["hx"], keywords: { keyword: "abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while " + "Int Float String Bool Dynamic Void Array ", built_in: "trace this", literal: "true false null _" }, contains: [ { className: "string", // interpolate-able strings begin: "'", end: "'", contains: [ e.BACKSLASH_ESCAPE, { className: "subst", // interpolation begin: /\$\{/, end: /\}/ }, { className: "subst", // interpolation begin: /\$/, end: /\W\}/ } ] }, e.QUOTE_STRING_MODE, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, { className: "number", begin: i, relevance: 0 }, { className: "variable", begin: "\\$" + s }, { className: "meta", // compiler meta begin: /@:?/, end: /\(|$/, excludeEnd: !0 }, { className: "meta", // compiler conditionals begin: "#", end: "$", keywords: { keyword: "if else elseif end error" } }, { className: "type", // function types begin: /:[ \t]*/, end: /[^A-Za-z0-9_ \t\->]/, excludeBegin: !0, excludeEnd: !0, relevance: 0 }, { className: "type", // types begin: /:[ \t]*/, end: /\W/, excludeBegin: !0, excludeEnd: !0 }, { className: "type", // instantiation beginKeywords: "new", end: /\W/, excludeBegin: !0, excludeEnd: !0 }, { className: "title.class", // enums beginKeywords: "enum", end: /\{/, contains: [e.TITLE_MODE] }, { className: "title.class", // abstracts begin: "\\babstract\\b(?=\\s*" + e.IDENT_RE + "\\s*\\()", end: /[\{$]/, contains: [ { className: "type", begin: /\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0 }, { className: "type", begin: /from +/, end: /\W/, excludeBegin: !0, excludeEnd: !0 }, { className: "type", begin: /to +/, end: /\W/, excludeBegin: !0, excludeEnd: !0 }, e.TITLE_MODE ], keywords: { keyword: "abstract from to" } }, { className: "title.class", // classes begin: /\b(class|interface) +/, end: /[\{$]/, excludeEnd: !0, keywords: "class interface", contains: [ { className: "keyword", begin: /\b(extends|implements) +/, keywords: "extends implements", contains: [ { className: "type", begin: e.IDENT_RE, relevance: 0 } ] }, e.TITLE_MODE ] }, { className: "title.function", beginKeywords: "function", end: /\(/, excludeEnd: !0, illegal: /\S/, contains: [e.TITLE_MODE] } ], illegal: /<\// }; } return n = t, n; } export { c as __require }; //# sourceMappingURL=haxe.mjs.map