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.

187 lines (186 loc) 4.17 kB
var a, s; function u() { if (s) return a; s = 1; function c(e) { const r = e.regex, o = { className: "meta", begin: "@[A-Za-z]+" }, t = { className: "subst", variants: [ { begin: "\\$[A-Za-z0-9_]+" }, { begin: /\$\{/, end: /\}/ } ] }, E = { className: "string", variants: [ { begin: '"""', end: '"""' }, { begin: '"', end: '"', illegal: "\\n", contains: [e.BACKSLASH_ESCAPE] }, { begin: '[a-z]+"', end: '"', illegal: "\\n", contains: [ e.BACKSLASH_ESCAPE, t ] }, { className: "string", begin: '[a-z]+"""', end: '"""', contains: [t], relevance: 10 } ] }, n = { className: "type", begin: "\\b[A-Z][A-Za-z0-9_]*", relevance: 0 }, i = { className: "title", begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/, relevance: 0 }, l = { className: "class", beginKeywords: "class object trait type", end: /[:={\[\n;]/, excludeEnd: !0, contains: [ e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, { beginKeywords: "extends with", relevance: 10 }, { begin: /\[/, end: /\]/, excludeBegin: !0, excludeEnd: !0, relevance: 0, contains: [ n, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE ] }, { className: "params", begin: /\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, relevance: 0, contains: [ n, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE ] }, i ] }, d = { className: "function", beginKeywords: "def", end: r.lookahead(/[:={\[(\n;]/), contains: [i] }, _ = { begin: [ /^\s*/, // Is first token on the line "extension", /\s+(?=[[(])/ // followed by at least one space and `[` or `(` ], beginScope: { 2: "keyword" } }, g = { begin: [ /^\s*/, // Is first token on the line /end/, /\s+/, /(extension\b)?/ // `extension` is the only marker that follows an `end` that cannot be captured by another rule. ], beginScope: { 2: "keyword", 4: "keyword" } }, N = [ { match: /\.inline\b/ }, { begin: /\binline(?=\s)/, keywords: "inline" } ], b = { begin: [ /\(\s*/, // Opening `(` of a parameter or argument list /using/, /\s+(?!\))/ // Spaces not followed by `)` ], beginScope: { 2: "keyword" } }; return { name: "Scala", keywords: { literal: "true false null", keyword: "type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent" }, contains: [ { begin: [ "//>", /\s+/, /using/, /\s+/, /\S+/ ], beginScope: { 1: "comment", 3: "keyword", 5: "type" }, end: /$/, contains: [ { className: "string", begin: /\S+/ } ] }, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, E, n, d, l, e.C_NUMBER_MODE, _, g, ...N, b, o ] }; } return a = c, a; } export { u as __require }; //# sourceMappingURL=scala.mjs.map