summaryrefslogtreecommitdiffstats
path: root/misc/syntax/po.syntax
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:12 +0000
commit8ccb487c21368a7fdc8c7c72315325bf0aa06147 (patch)
treeb2056fae01d325924508a41731edfbd4c3cddd23 /misc/syntax/po.syntax
parentInitial commit. (diff)
downloadmc-8ccb487c21368a7fdc8c7c72315325bf0aa06147.tar.xz
mc-8ccb487c21368a7fdc8c7c72315325bf0aa06147.zip
Adding upstream version 3:4.8.29.upstream/3%4.8.29upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'misc/syntax/po.syntax')
-rw-r--r--misc/syntax/po.syntax70
1 files changed, 70 insertions, 0 deletions
diff --git a/misc/syntax/po.syntax b/misc/syntax/po.syntax
new file mode 100644
index 0000000..77dfa35
--- /dev/null
+++ b/misc/syntax/po.syntax
@@ -0,0 +1,70 @@
+# ---------------------------------------------------
+# po.syntax
+# GNU Gettext PO files syntax highlighting template.
+# Syntax highlighting rules for files produced with
+# Gettext tools as used in Midnight Commander and
+# Cooledit editors.
+#
+# It highlights:
+# - Original and translated messages (blue/green)
+# - Generic comments added by Gettext (white)
+# - C-style format modifiers,
+# as in c.syntax (brightgreen)
+# - Messages marked as "fuzzy" (brightred)
+# - Untranslated messages (brightred)
+# - Unused messages (red)
+#
+# Author: David Martin <dmartina@excite.es>
+# August 17, 2001
+# ---------------------------------------------------
+
+context default
+ keyword linestart msgstr\s\"\"\n\n brightred
+ keyword linestart msgid brightcyan
+ keyword linestart msgstr brightcyan
+
+context linestart #,\sfuzzy \n\n brightred
+
+context linestart #: \n white
+
+context linestart #, \n white
+ keyword c-format yellow
+
+context linestart #~ \n red
+
+context linestart # \n brown
+ spellcheck
+
+context exclusive linestart msgid \n cyan
+ spellcheck
+ keyword \"\n\"
+ keyword \\" brightgreen
+ keyword \\\n brightgreen
+ keyword %% brightgreen
+ keyword %\[#0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[L\]\{eEfgG\} brightgreen
+ keyword %\[0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[hl\]\{diouxX\} brightgreen
+ keyword %\[hl\]n brightgreen
+ keyword %\[.\]\[0123456789\]s brightgreen
+ keyword %[*] brightgreen
+ keyword %c brightgreen
+ keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
+ keyword \\\\ brightgreen
+ keyword \\' brightgreen
+ keyword \\\{abtnvfr\} brightgreen
+
+context exclusive linestart msgstr \n green
+ spellcheck
+ keyword \"\n\"
+ keyword \\" brightgreen
+ keyword \\\n brightgreen
+ keyword %% brightgreen
+ keyword %\[#0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[L\]\{eEfgG\} brightgreen
+ keyword %\[0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[hl\]\{diouxX\} brightgreen
+ keyword %\[hl\]n brightgreen
+ keyword %\[.\]\[0123456789\]s brightgreen
+ keyword %[*] brightgreen
+ keyword %c brightgreen
+ keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
+ keyword \\\\ brightgreen
+ keyword \\' brightgreen
+ keyword \\\{abtnvfr\} brightgreen