vue-files-preview-inno
Version:
A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.
78 lines (77 loc) • 1.49 kB
JavaScript
var a, r;
function i() {
if (r) return a;
r = 1;
function t(e) {
const n = e.regex, c = /[_A-Za-z][_0-9A-Za-z]*/;
return {
name: "GraphQL",
aliases: ["gql"],
case_insensitive: !0,
disableAutodetect: !1,
keywords: {
keyword: [
"query",
"mutation",
"subscription",
"type",
"input",
"schema",
"directive",
"interface",
"union",
"scalar",
"fragment",
"enum",
"on"
],
literal: [
"true",
"false",
"null"
]
},
contains: [
e.HASH_COMMENT_MODE,
e.QUOTE_STRING_MODE,
e.NUMBER_MODE,
{
scope: "punctuation",
match: /[.]{3}/,
relevance: 0
},
{
scope: "punctuation",
begin: /[\!\(\)\:\=\[\]\{\|\}]{1}/,
relevance: 0
},
{
scope: "variable",
begin: /\$/,
end: /\W/,
excludeEnd: !0,
relevance: 0
},
{
scope: "meta",
match: /@\w+/,
excludeEnd: !0
},
{
scope: "symbol",
begin: n.concat(c, n.lookahead(/\s*:/)),
relevance: 0
}
],
illegal: [
/[;<']/,
/BEGIN/
]
};
}
return a = t, a;
}
export {
i as __require
};
//# sourceMappingURL=graphql.mjs.map