aboutsummaryrefslogtreecommitdiffstats
path: root/public/prism/prism-gettext.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/prism/prism-gettext.min.js')
-rw-r--r--public/prism/prism-gettext.min.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/public/prism/prism-gettext.min.js b/public/prism/prism-gettext.min.js
new file mode 100644
index 0000000..9a9061b
--- /dev/null
+++ b/public/prism/prism-gettext.min.js
@@ -0,0 +1,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);