vue-files-preview-inno
Version:
A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.
29 lines (28 loc) • 793 B
JavaScript
import { parser as n } from "../../../@lezer/json/dist/index.mjs";
import { LanguageSupport as r, LRLanguage as o, indentNodeProp as a, foldNodeProp as t, continuedIndent as e, foldInside as d } from "../../language/dist/index.mjs";
const p = /* @__PURE__ */ o.define({
name: "json",
parser: /* @__PURE__ */ n.configure({
props: [
/* @__PURE__ */ a.add({
Object: /* @__PURE__ */ e({ except: /^\s*\}/ }),
Array: /* @__PURE__ */ e({ except: /^\s*\]/ })
}),
/* @__PURE__ */ t.add({
"Object Array": d
})
]
}),
languageData: {
closeBrackets: { brackets: ["[", "{", '"'] },
indentOnInput: /^\s*[\}\]]$/
}
});
function u() {
return new r(p);
}
export {
u as json,
p as jsonLanguage
};
//# sourceMappingURL=index.mjs.map