2014-04-13 15:57:05 +00:00
|
|
|
## Colouring for PO files.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2018-02-07 10:25: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.
|
2017-12-30 16:32:15 +00:00
|
|
|
color yellow "\<(UTF|ISO|Windows|Mac|IBM)-[0-9]+"
|
2014-04-03 10:54:46 +00:00
|
|
|
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]*"
|
2018-04-17 07:52:01 +00:00
|
|
|
# Quotes and escaped characters.
|
2014-04-03 10:54:46 +00:00
|
|
|
color yellow "\""
|
2018-04-17 07:52:01 +00:00
|
|
|
color cyan "\\[abcefnrtv"\]"
|
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.
|
2018-11-03 20:12:44 +00:00
|
|
|
color red "#~.*"
|