UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

31 lines (30 loc) 872 B
import { a as languages } from "../../core-8vQkh0Rd.js"; import { n as tag, r as xmlComment, t as entity } from "../../xml-shared-BvyhLOaL.js"; //#region src/prism/languages/xml.js languages.rss = languages.atom = languages.ssml = languages.xml = { "comment": xmlComment, "prolog": /<\?[^]+?\?>/g, "doctype": { 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" } }; //#endregion //# sourceMappingURL=xml.js.map