summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-uri.min.js
blob: 7ab36f0ef58a525f7384c2fbfa36f6f43200da00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888
(Prism.languages.uri = {
  scheme: {
    pattern: /^[a-z][a-z0-9+.-]*:/im,
    greedy: !0,
    inside: { 'scheme-delimiter': /:$/ },
  },
  fragment: {
    pattern: /#[\w\-.~!$&'()*+,;=%:@/?]*/,
    inside: { 'fragment-delimiter': /^#/ },
  },
  query: {
    pattern: /\?[\w\-.~!$&'()*+,;=%:@/?]*/,
    inside: {
      'query-delimiter': { pattern: /^\?/, greedy: !0 },
      'pair-delimiter': /[&;]/,
      pair: {
        pattern: /^[^=][\s\S]*/,
        inside: {
          key: /^[^=]+/,
          value: { pattern: /(^=)[\s\S]+/, lookbehind: !0 },
        },
      },
    },
  },
  authority: {
    pattern: RegExp(
      "^//(?:[\\w\\-.~!$&'()*+,;=%:]*@)?(?:\\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\\.[\\w\\-.~!$&'()*+,;=]+)\\]|[\\w\\-.~!$&'()*+,;=%]*)(?::\\d*)?",
      'm'
    ),
    inside: {
      
an class="p">{ pattern: /^[\w\-.~!$&'()*+,;=%:]*@/, inside: { 'user-info-delimiter': /@$/, 'user-info': /^[\w\-.~!$&'()*+,;=%:]+/, }, }, 'port-segment': { pattern: /:\d*$/, inside: { 'port-delimiter': /^:/, port: /^\d+/ }, }, host: { pattern: /[\s\S]+/, inside: { 'ip-literal': { pattern: /^\[[\s\S]+\]$/, inside: { 'ip-literal-delimiter': /^\[|\]$/, 'ipv-future': /^v[\s\S]+/, 'ipv6-address': /^[\s\S]+/, }, }, 'ipv4-address': /^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/, }, }, }, }, path: { pattern: /^[\w\-.~!$&'()*+,;=%:@/]+/m, inside: { 'path-separator': /\// }, }, }), (Prism.languages.url = Prism.languages.uri);