2020-04-20 17:15:43 +00:00
|
|
|
## Syntax highlighting for PO files.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2020-09-14 17:37:45 +00:00
|
|
|
## Original author: Benno Schulenberg
|
|
|
|
## License: GPL version 3 or newer
|
|
|
|
|
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.
|
2020-07-27 08:47:27 +00:00
|
|
|
color brightred "^"X-Bugs:.*"$"
|
2020-04-21 10:47:08 +00:00
|
|
|
color brightmagenta "\<(Project-Id-Version|Report-Msgid-Bugs-To|Last-Translator|Language(-Team)?|X-Bugs|X-Generator|Plural-Forms)\>"
|
|
|
|
color cyan "\<(POT-Creation-Date|PO-Revision-Date|MIME-Version|Content-Type|Content-Transfer-Encoding)\>"
|
2014-04-03 10:54:46 +00:00
|
|
|
# Encodings and numbers.
|
2017-12-30 16:32:15 +00:00
|
|
|
color yellow "\<(UTF|ISO|Windows|Mac|IBM)-[0-9]+"
|
2019-07-29 17:07:43 +00:00
|
|
|
color yellow "\<((pre|rc)?[0-9]+|[0-9]bit)\>"
|
2014-04-03 10:54:46 +00:00
|
|
|
# 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.
|
2021-04-25 15:21:08 +00:00
|
|
|
color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[1-9](\.[0-9]?)?)?[hlLjzt]?[diouxXeEfFgGaAcspnm%]"
|
2018-04-17 07:52:01 +00:00
|
|
|
# Quotes and escaped characters.
|
2020-07-27 08:47:27 +00:00
|
|
|
color yellow """
|
2019-05-03 10:00:29 +00:00
|
|
|
color cyan "\\([abcefnrtv"\]|x[0-9abcdefABCDEF]{2}|[0-7]{3})"
|
2014-04-13 15:57:05 +00:00
|
|
|
# Reminders.
|
2020-04-21 10:47:08 +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 "#~.*"
|
2020-09-08 17:38:55 +00:00
|
|
|
# Stray control codes.
|
|
|
|
color bold,pink,red "[[:cntrl:]]"
|
2020-09-10 17:41:39 +00:00
|
|
|
# Tabs.
|
|
|
|
color mint "[[:blank:]]"
|