UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

16 lines (15 loc) 446 B
import { P as p, l as t } from "../prismCore-5c7f03d0.js"; import "./jsx.js"; import "./typescript.js"; import "./markup.js"; import "./javascript.js"; import "./clike.js"; var o = p.util.clone(t.ts), e = t.tsx = t.extend("jsx", o), r = e.tag, a = "("; delete e.parameter; delete e["literal-property"]; try { RegExp("(?<=)"), a += "?<="; } catch { r.lookbehind = !0; } r.pattern = RegExp(a + `^|[^\\w$]|(?=</))(?:${r.pattern.source})`, "g");