mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-02 01:17:15 +03:00
9e382ba691
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
## Syntax highlighting for PO files.
|
|
|
|
## Original author: Benno Schulenberg
|
|
## License: GPL version 3 or newer
|
|
|
|
syntax po "\.pot?$"
|
|
comment "#"
|
|
|
|
# Comments.
|
|
color green "^#.*$"
|
|
color yellow "Copyright|\(C\)"
|
|
# Header fields.
|
|
color brightred "^"X-Bugs:.*"$"
|
|
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)\>"
|
|
# Encodings and numbers.
|
|
color yellow "\<(UTF|ISO|Windows|Mac|IBM)-[0-9]+"
|
|
color yellow "\<((pre|rc)?[0-9]+|[0-9]bit)\>"
|
|
# Msgids.
|
|
color brightblue "^(msgid|msgid_plural|msgstr)\>"
|
|
# Tags.
|
|
color red " fuzzy(,|$)"
|
|
color yellow " (no-)?[-[:alpha:]]+-format(,|$)"
|
|
# Format specifiers.
|
|
color brightmagenta "%([1-9]\$)?[a-z]*"
|
|
# Quotes and escaped characters.
|
|
color yellow """
|
|
color cyan "\\([abcefnrtv"\]|x[0-9abcdefABCDEF]{2}|[0-7]{3})"
|
|
# Reminders.
|
|
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
|
|
# Obsolete strings.
|
|
color red "#~.*"
|
|
# Stray control codes.
|
|
color bold,pink,red "[[:cntrl:]]"
|
|
# Tabs.
|
|
color mint "[[:blank:]]"
|