!(function (t) { (t.languages.smarty = { comment: { pattern: /^\{\*[\s\S]*?\*\}/, greedy: !0 }, 'embedded-php': { pattern: /^\{php\}[\s\S]*?\{\/php\}/, greedy: !0, inside: { smarty: { pattern: /^\{php\}|\{\/php\}$/, inside: null }, php: { pattern: /[\s\S]+/, alias: 'language-php', inside: t.languages.php, }, }, }, string: [ { pattern: /"(?:\\.|[^"\\\r\n])*"/, greedy: !0, inside: { interpolation: { pattern: /\{[^{}]*\}|`[^`]*`/, inside: { 'interpolation-punctuation': { pattern: /^[{`]|[`}]$/, alias: 'punctuation', }, expression: { pattern: /[\s\S]+/, inside: null }, }, }, variable: /\$\w+/, }, }, { pattern: /'(?:\\.|[^'\\\r\n])*'/, greedy: !0 }, ], keyword: { pattern: /(^\{\/?)[a-z_]\w*\b(?!\()/i, lookbehind: !0, greedy: !0, }, delimiter: { pattern: /^\{\/?|\}$/, greedy: !0, alias: 'punctuation' }, number: /\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/, variable: [ /\$(?!\d)\w+/, /#(?!\d)\w+#/, { pattern: /(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/, lookbehind: !0 }, { pattern: /(\[)(?!\d)\w+(?=\])/, lookbehind: !0 }, ], function: { pattern: /(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i, lookbehind: !0, }, 'attr-name': /\b[a-z_]\w*(?=\s*=)/i, boolean: /\b(?:false|no|off|on|true|yes)\b/, punctuation: /[\[\](){}.,:`]|->/, operator: [ /[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/, /\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/, /\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/, ], }), (t.languages.smarty['embedded-php'].inside.smarty.inside = t.languages.smarty), (t.languages.smarty.string[0].inside.interpolation.inside.expression.inside = t.languages.smarty); var e = /"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/, a = RegExp( '\\{\\*[^]*?\\*\\}|\\{php\\}[^]*?\\{/php\\}|' + '\\{(?:[^{}"\']||\\{(?:[^{}"\']||\\{(?:[^{}"\']|)*\\})*\\})*\\}'.replace( //g, function () { return e.source; } ), 'g' ); t.hooks.add('before-tokenize', function (e) { var n = !1; t.languages['markup-templating'].buildPlaceholders( e, 'smarty', a, function (e) { return ( '{/literal}' === e && (n = !1), !n && ('{literal}' === e && (n = !0), !0) ); } ); }), t.hooks.add('after-tokenize', function (e) { t.languages['markup-templating'].tokenizePlaceholders(e, 'smarty'); }); })(Prism); philippot.com/tree/public?h=v2.0.0&id=c1ce65e75f6cf5514e7eee9541ff8a8eacc04822'>public/prism/prism-makefile.min.js
blob: ed18643becb4582b696558376b311afa3fadff5f (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
Prism.languages.makefile = {
  comment: {
    pattern: /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,
    lookbehind: !0,
  },
  string: {
    pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
    greedy: !0,
  },
  'builtin-target': {
    pattern: /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
    alias: 'builtin',
  },
  target: {
    pattern: /^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,
    alias: 'symbol',
    inside: { variable: /\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/ },
  },
  variable: /\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,
  keyword:
    /-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,
  function: {
    pattern:
      /(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,
    lookbehind: !0,
  },
  operator: /(?:::|[?:+!])?=|[|@]/,
  punctuation: /[:;(){}]/,
};