2014-04-13 19:57:05 +04:00
|
|
|
## Colouring for PO files.
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2014-04-03 14:54:46 +04:00
|
|
|
syntax "po" "\.pot?$"
|
2016-05-25 23:13:50 +03:00
|
|
|
comment "#"
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2014-04-03 14:54:46 +04:00
|
|
|
# Comments.
|
|
|
|
color green "^#.*$"
|
|
|
|
color yellow "Copyright|\(C\)"
|
|
|
|
# Header fields.
|
2015-04-28 22:22:11 +03:00
|
|
|
color brightmagenta "\<(Project\-Id\-Version|Report\-Msgid\-Bugs\-To|Last\-Translator|Language(\-Team)?|X\-Generator|Plural\-Forms)\>"
|
2014-04-03 14:54:46 +04:00
|
|
|
color cyan "\<(POT\-Creation\-Date|PO\-Revision\-Date|MIME\-Version|Content\-Type|Content\-Transfer\-Encoding)\>"
|
|
|
|
# Encodings and numbers.
|
|
|
|
color yellow "\<(UTF|ISO|Windows|Mac|IBM)\>\-[0-9]"
|
|
|
|
color yellow "[0-9]|pre[0-9]|[0-9]bit"
|
|
|
|
# Msgids.
|
2015-04-28 22:22:11 +03:00
|
|
|
color brightblue "^(msgid|msgid_plural|msgstr)\>"
|
2014-04-03 14:54:46 +04:00
|
|
|
# Tags.
|
2015-04-28 22:22:11 +03:00
|
|
|
color red " fuzzy(,|$)"
|
|
|
|
color yellow " (no-)?[-[:alpha:]]+-format(,|$)"
|
2014-04-03 14:54:46 +04:00
|
|
|
# Format specifiers.
|
|
|
|
color brightmagenta "%([1-9]\$)?[a-z]*"
|
|
|
|
# Quotes and newlines.
|
|
|
|
color yellow "\""
|
|
|
|
color cyan "\\n"
|
2014-04-13 19:57:05 +04:00
|
|
|
# Reminders.
|
|
|
|
color ,yellow "(FIXME|TODO|XXX)"
|
2014-04-03 14:54:46 +04:00
|
|
|
# Obsolete strings.
|
|
|
|
color red "#~.*$"
|