vue-files-preview-inno
Version:
A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.
62 lines (61 loc) • 1.21 kB
JavaScript
var e, a;
function r() {
if (a) return e;
a = 1;
function n(d) {
const i = d.regex;
return {
name: "Diff",
aliases: ["patch"],
contains: [
{
className: "meta",
relevance: 10,
match: i.either(
/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,
/^\*\*\* +\d+,\d+ +\*\*\*\*$/,
/^--- +\d+,\d+ +----$/
)
},
{
className: "comment",
variants: [
{
begin: i.either(
/Index: /,
/^index/,
/={3,}/,
/^-{3}/,
/^\*{3} /,
/^\+{3}/,
/^diff --git/
),
end: /$/
},
{ match: /^\*{15}$/ }
]
},
{
className: "addition",
begin: /^\+/,
end: /$/
},
{
className: "deletion",
begin: /^-/,
end: /$/
},
{
className: "addition",
begin: /^!/,
end: /$/
}
]
};
}
return e = n, e;
}
export {
r as __require
};
//# sourceMappingURL=diff.mjs.map