aboutsummaryrefslogtreecommitdiffstats
path: root/public/prism/prism-gettext.min.js
blob: 9a9061b242de01cd12fca77669c01330315c0206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(Prism.languages.gettext = {
  comment: [
    { pattern: /# .*/, greedy: !0, alias: 'translator-comment' },
    { pattern: /#\..*/, greedy: !0, alias: 'extracted-comment' },
    { pattern: /#:.*/, greedy: !0, alias: 'reference-comment' },
    { pattern: /#,.*/, greedy: !0, alias: 'flag-comment' },
    { pattern: /#\|.*/, greedy: !0, alias: 'previously-untranslated-comment' },
    { pattern: /#.*/, greedy: !0 },
  ],
  string: { pattern: /(^|[^\\])"(?:[^"\\]|\\.)*"/, lookbehind: !0, greedy: !0 },
  keyword: /^msg(?:ctxt|id|id_plural|str)\b/m,
  number: /\b\d+\b/,
  punctuation: /[\[\]]/,
}),
  (Prism.languages.po = Prism.languages.gettext);