mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 02:08:16 +08:00
90 lines
1.9 KiB
JavaScript
90 lines
1.9 KiB
JavaScript
|
import {
|
||
|
__commonJS
|
||
|
} from "./chunk-2TUXWMP5.js";
|
||
|
|
||
|
// node_modules/highlight.js/lib/languages/diff.js
|
||
|
var require_diff = __commonJS({
|
||
|
"node_modules/highlight.js/lib/languages/diff.js"(exports, module) {
|
||
|
function diff(hljs) {
|
||
|
return {
|
||
|
name: "Diff",
|
||
|
aliases: ["patch"],
|
||
|
contains: [
|
||
|
{
|
||
|
className: "meta",
|
||
|
relevance: 10,
|
||
|
variants: [
|
||
|
{
|
||
|
begin: /^@@ +-\d+,\d+ +\+\d+,\d+ +@@/
|
||
|
},
|
||
|
{
|
||
|
begin: /^\*\*\* +\d+,\d+ +\*\*\*\*$/
|
||
|
},
|
||
|
{
|
||
|
begin: /^--- +\d+,\d+ +----$/
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
className: "comment",
|
||
|
variants: [
|
||
|
{
|
||
|
begin: /Index: /,
|
||
|
end: /$/
|
||
|
},
|
||
|
{
|
||
|
begin: /^index/,
|
||
|
end: /$/
|
||
|
},
|
||
|
{
|
||
|
begin: /={3,}/,
|
||
|
end: /$/
|
||
|
},
|
||
|
{
|
||
|
begin: /^-{3}/,
|
||
|
end: /$/
|
||
|
},
|
||
|
{
|
||
|
begin: /^\*{3} /,
|
||
|
end: /$/
|
||
|
},
|
||
|
{
|
||
|
begin: /^\+{3}/,
|
||
|
end: /$/
|
||
|
},
|
||
|
{
|
||
|
begin: /^\*{15}$/
|
||
|
},
|
||
|
{
|
||
|
begin: /^diff --git/,
|
||
|
end: /$/
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
className: "addition",
|
||
|
begin: /^\+/,
|
||
|
end: /$/
|
||
|
},
|
||
|
{
|
||
|
className: "deletion",
|
||
|
begin: /^-/,
|
||
|
end: /$/
|
||
|
},
|
||
|
{
|
||
|
className: "addition",
|
||
|
begin: /^!/,
|
||
|
end: /$/
|
||
|
}
|
||
|
]
|
||
|
};
|
||
|
}
|
||
|
module.exports = diff;
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export {
|
||
|
require_diff
|
||
|
};
|
||
|
//# sourceMappingURL=chunk-HJ4VHCCW.js.map
|