summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-autoit.js
Commit message (Expand)AuthorAgeFilesLines
* chore: add prismjs for syntax highlightingArmand Philippot2021-12-301-0/+36
n21' href='#n21'>21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
!(function (n) {
  function i(e, t, a) {
    return {
      pattern: RegExp('<#' + e + '[\\s\\S]*?#>'),
      alias: 'block',
      inside: {
        delimiter: { pattern: RegExp('^<#' + e + '|#>$'), alias: 'important' },
        content: { pattern: /[\s\S]+/, inside: t, alias: a },
      },
    };
  }
  n.languages['t4-templating'] = Object.defineProperty({}, 'createT4', {
    value: function (e) {
      var t = n.languages[e],
        a = 'language-' + e;
      return {
        block: {
          pattern: /<#[\s\S]+?#>/,
          inside: {
            directive: i('@', {
              'attr-value': {
                pattern: /=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,
                inside: { punctuation: /^=|^["']|["']$/ },
              },
              keyword: /\b\w+(?=\s)/,
              'attr-name': /\b\w+/,
            }),
            expression: i('=', t, a),
            'class-feature': i('\\+', t, a),
            standard: i('', t, a),
          },
        },
      };
    },
  });
})(Prism);