2014-04-13 15:57:05 +00:00
|
|
|
## Colouring for PO files.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2014-04-03 10:54:46 +00:00
|
|
|
syntax "po" "\.pot?$"
|
2016-05-25 20:13:50 +00:00
|
|
|
comment "#"
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2014-04-03 10:54:46 +00:00
|
|
|
# Comments.
|
|
|
|
color green "^#.*$"
|
|
|
|
color yellow "Copyright|\(C\)"
|
|
|
|
# Header fields.
|
2016-09-05 14:59:00 +00:00
|
|
|
color brightred "^\"X-Bugs:.*\"$"
|
|
|
|
color brightmagenta "\<(Project\-Id\-Version|Report\-Msgid\-Bugs\-To|Last\-Translator|Language(\-Team)?|X-Bugs|X-Generator|Plural\-Forms)\>"
|
2014-04-03 10:54:46 +00: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 19:22:11 +00:00
|
|
|
color brightblue "^(msgid|msgid_plural|msgstr)\>"
|
2014-04-03 10:54:46 +00:00
|
|
|
# Tags.
|
2015-04-28 19:22:11 +00:00
|
|
|
color red " fuzzy(,|$)"
|
|
|
|
color yellow " (no-)?[-[:alpha:]]+-format(,|$)"
|
2014-04-03 10:54:46 +00:00
|
|
|
# Format specifiers.
|
|
|
|
color brightmagenta "%([1-9]\$)?[a-z]*"
|
|
|
|
# Quotes and newlines.
|
|
|
|
color yellow "\""
|
|
|
|
color cyan "\\n"
|
2014-04-13 15:57:05 +00:00
|
|
|
# Reminders.
|
2017-12-10 13:27:21 +00:00
|
|
|
color brightwhite,yellow "(FIXME|TODO|XXX)"
|
2014-04-03 10:54:46 +00:00
|
|
|
# Obsolete strings.
|
|
|
|
color red "#~.*$"
|