summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-xml-doc.min.js
blob: f880c6ef16f7ab7f683465a284495d8a6cd41cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
!(function (n) {
  function a(a, e) {
    n.languages[a] &&
      n.languages.insertBefore(a, 'comment', { 'doc-comment': e });
  }
  var e = n.languages.markup.tag,
    t = {
      pattern: /\/\/\/.*/,
      greedy: !0,
      alias: 'comment',
      inside: { tag: e },
    },
    g = { pattern: /'''.*/, greedy: !0, alias: 'comment', inside: { tag: e } };
  a('csharp', t), a('fsharp', t), a('vbnet', g);
})(Prism);
pan>, lookbehind: true, alias: 'property', }, scheme: { pattern: value(/[a-z][a-z0-9.+-]*:/.source), lookbehind: true, }, none: { pattern: value(/'none'/.source), lookbehind: true, alias: 'keyword', }, nonce: { pattern: value(/'nonce-[-+/\w=]+'/.source), lookbehind: true, alias: 'number', }, hash: { pattern: value(/'sha(?:256|384|512)-[-+/\w=]+'/.source), lookbehind: true, alias: 'number', }, host: { pattern: value( /[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source + '|' + /\*[^\s;,']*/.source + '|' + /[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source ), lookbehind: true, alias: 'url', inside: { important: /\*/, }, }, keyword: [ { pattern: value(/'unsafe-[a-z-]+'/.source), lookbehind: true, alias: 'unsafe', }, { pattern: value(/'[a-z-]+'/.source), lookbehind: true, alias: 'safe', }, ], punctuation: /;/, }; })(Prism);