UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

30 lines (29 loc) 921 B
import { l as languages } from "../../index-DF54SWhA.js"; import { e as entity, t as tag, x as xmlComment } from "../../xml-shared-D-sSvkQn.js"; languages.rss = languages.atom = languages.ssml = languages.xml = { "comment": xmlComment, "prolog": /<\?[^]+?\?>/g, "doctype": { // https://www.w3.org/TR/xml/#NT-doctypedecl pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/gi, inside: { "internal-subset": { pattern: /(\[)[^]+(?=\]\s*>$)/, lookbehind: true, inside: "xml" }, "string": /"[^"]*"|'[^']*'/, "punctuation": /^<!|[>[\]]/, "doctype-tag": /^DOCTYPE/i, "name": /\S+/ } }, "cdata": /<!\[CDATA\[[^]*?\]\]>/gi, "tag": tag, "entity": entity, "markup-bracket": { pattern: /[()[\]{}]/, alias: "punctuation" } }; //# sourceMappingURL=xml.js.map