!(function (e) { var n = '(?:' + [ '[a-zA-Z_\\x80-\\uFFFF][\\w\\x80-\\uFFFF]*', '-?(?:\\.\\d+|\\d+(?:\\.\\d*)?)', '"[^"\\\\]*(?:\\\\[^][^"\\\\]*)*"', '<(?:[^<>]|(?!\x3c!--)<(?:[^<>"\']|"[^"]*"|\'[^\']*\')+>|\x3c!--(?:[^-]|-(?!->))*--\x3e)*>', ].join('|') + ')', a = { markup: { pattern: /(^<)[\s\S]+(?=>$)/, lookbehind: !0, alias: ['language-markup', 'language-html', 'language-xml'], inside: e.languages.markup, }, }; function r(e, a) { return RegExp( e.replace(//g, function () { return n; }), a ); } (e.languages.dot = { comment: { pattern: /\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m, greedy: !0 }, 'graph-name': { pattern: r('(\\b(?:digraph|graph|subgraph)[ \t\r\n]+)', 'i'), lookbehind: !0, greedy: !0, alias: 'class-name', inside: a, }, 'attr-value': { pattern: r('(=[ \t\r\n]*)'), lookbehind: !0, greedy: !0, inside: a, }, 'attr-name': { pattern: r('([\\[;, \t\r\n])(?=[ \t\r\n]*=)'), lookbehind: !0, greedy: !0, inside: a, }, keyword: /\b(?:digraph|edge|graph|node|strict|subgraph)\b/i, 'compass-point': { pattern: /(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/, lookbehind: !0, alias: 'builtin', }, node: { pattern: r('(^|[^-.\\w\\x80-\\uFFFF\\\\])'), lookbehind: !0, greedy: !0, inside: a, }, operator: /[=:]|-[->]/, punctuation: /[\[\]{};,]/, }), (e.languages.gv = e.languages.dot); })(Prism); 8c6167e4f83f43e11942a9e937c2a60'>treecommitdiffstats
blob: 02a01f82764eca717ca64619400eb8fb5e46386e (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
!(function (t) {
  (t.languages.tt2 = t.languages.extend('clike', {
    comment: /#.*|\[%#[\s\S]*?%\]/,
    keyword:
      /\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,
    punctuation: /[[\]{},()]/,
  })),
    t.languages.insertBefore('tt2', 'number', {
      operator: /=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,
      variable: { pattern: /\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i },
    }),
    t.languages.insertBefore('tt2', 'keyword', {
      delimiter: { pattern: /^(?:\[%|%%)-?|-?%\]$/, alias: 'punctuation' },
    }),
    t.languages.insertBefore('tt2', 'string', {
      'single-quoted-string': {
        pattern: /'[^\\']*(?:\\[\s\S][^\\']*)*'/,
        greedy: !0,
        alias: 'string',
      },
      'double-quoted-string': {
        pattern: /"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,
        greedy: !0,
        alias: 'string',
        inside: {
          variable: { pattern: /\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i },
        },
      },
    }),
    delete t.languages.tt2.string,
    t.hooks.add('before-tokenize', function (e) {
      t.languages['markup-templating'].buildPlaceholders(
        e,
        'tt2',
        /\[%[\s\S]+?%\]/g
      );
    }),
    t.hooks.add('after-tokenize', function (e) {
      t.languages['markup-templating'].tokenizePlaceholders(e, 'tt2');
    });
})(Prism);