2020-04-20 20:15:43 +03:00
|
|
|
## Syntax highlighting for PO files.
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2020-09-14 20:37:45 +03:00
|
|
|
## Original author: Benno Schulenberg
|
|
|
|
## License: GPL version 3 or newer
|
|
|
|
|
2018-02-07 13:25:46 +03: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.
|
2020-07-27 11:47:27 +03:00
|
|
|
color brightred "^"X-Bugs:.*"$"
|
2020-04-21 13:47:08 +03: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 14:54:46 +04:00
|
|
|
# Encodings and numbers.
|
2017-12-30 19:32:15 +03:00
|
|
|
color yellow "\<(UTF|ISO|Windows|Mac|IBM)-[0-9]+"
|
2019-07-29 20:07:43 +03:00
|
|
|
color yellow "\<((pre|rc)?[0-9]+|[0-9]bit)\>"
|
2014-04-03 14:54:46 +04:00
|
|
|
# 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]*"
|
2018-04-17 10:52:01 +03:00
|
|
|
# Quotes and escaped characters.
|
2020-07-27 11:47:27 +03:00
|
|
|
color yellow """
|
2019-05-03 13:00:29 +03:00
|
|
|
color cyan "\\([abcefnrtv"\]|x[0-9abcdefABCDEF]{2}|[0-7]{3})"
|
2014-04-13 19:57:05 +04:00
|
|
|
# Reminders.
|
2020-04-21 13:47:08 +03:00
|
|
|
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
|
2014-04-03 14:54:46 +04:00
|
|
|
# Obsolete strings.
|
2018-11-03 23:12:44 +03:00
|
|
|
color red "#~.*"
|
2020-09-08 20:38:55 +03:00
|
|
|
# Stray control codes.
|
|
|
|
color bold,pink,red "[[:cntrl:]]"
|
2020-09-10 20:41:39 +03:00
|
|
|
# Tabs.
|
|
|
|
color mint "[[:blank:]]"
|