import { processAST } from "@git-diff-view/utils"; import { createLowlight, all } from "lowlight"; import type { _getAST } from "./lang"; import type { DiffAST, SyntaxLine } from "@git-diff-view/utils"; const lowlight = createLowlight(all); // !SEE https://github.com/highlightjs/highlightjs-vue lowlight.register("vue", function hljsDefineVue(hljs) { return { subLanguage: "xml", contains: [ hljs.COMMENT("", { relevance: 10, }), { begin: /^(\s*)(