Debian Codegraph @

inst/lib/prism-code-editor/prism/languages/xml.js

raw
1 import { l as languages } from "../../index-C1_GGQ8y.js";
2 import { e as entity, t as tag, x as xmlComment } from "../../xml-shared-D4vCmq1i.js";
3 languages.rss = languages.atom = languages.ssml = languages.xml = {
4 "comment": xmlComment,
5 "prolog": {
6 pattern: /<\?[^]+?\?>/g,
7 greedy: true
8 },
9 "doctype": {
10 // https://www.w3.org/TR/xml/#NT-doctypedecl
11 pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/gi,
12 greedy: true,
13 inside: {
14 "internal-subset": {
15 pattern: /(\[)[^]+(?=\]\s*>$)/,
16 lookbehind: true,
17 inside: "xml"
18 },
19 "string": /"[^"]*"|'[^']*'/,
20 "punctuation": /^<!|[>[\]]/,
21 "doctype-tag": /^DOCTYPE/i,
22 "name": /\S+/
23 }
24 },
25 "cdata": {
26 pattern: /<!\[CDATA\[[^]*?\]\]>/gi,
27 greedy: true
28 },
29 "tag": tag,
30 "entity": entity,
31 "markup-bracket": {
32 pattern: /[()[\]{}]/,
33 alias: "punctuation"
34 }
35 };
36 //# sourceMappingURL=xml.js.map