UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

17 lines (16 loc) 604 B
import { l as o } from "../index-fa58cb3b.js"; import { a as g, i as n, x as a } from "../patterns-9129a01c.js"; import "../prismCore-5c7f03d0.js"; o.xml = o.ssml = o.atom = o.rss = o.mathml = o.svg = { comments: { block: ["<!--", "-->"] }, autoIndent: [ ([s], t) => g.test(t = t.substring(s - 999, s)) || /[([{][^\n)\]}]*$/.test(t), ([s, t], m) => n.test(m[s - 1] + m[t]) || g.test(m.substring(s - 999, s)) && a.test(m.slice(t, t + 999)) ], autoCloseTags([s, t], m) { const i = s == t ? (m.substring(s - 999, s) + ">").match(g)?.[1] : ""; return i ? `</${i}>` : ""; } };