syntaxes: drop three redundant end-of-line anchors

Also fold two regexes into one, for conciseness.
This commit is contained in:
Benno Schulenberg 2021-10-15 10:15:48 +02:00
parent f9468fa987
commit 4ac932bd21
3 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ color magenta "\<(bindtextdomain|dcgettext|dcngettext)\>"
# Strings. # Strings.
color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
# Comments. # Comments.
color brightblue "(^|[[:blank:]])#.*$" color brightblue "(^|[[:blank:]])#.*"
# Trailing whitespace. # Trailing whitespace.
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -7,7 +7,7 @@ syntax po "\.pot?$"
comment "#" comment "#"
# Comments. # Comments.
color green "^#.*$" color green "^#.*"
color yellow "Copyright|\(C\)" color yellow "Copyright|\(C\)"
# Header fields. # Header fields.
color brightred "^"X-Bugs:.*"$" color brightred "^"X-Bugs:.*"$"

View File

@ -9,10 +9,10 @@ magic "Texinfo source"
comment "@c " comment "@c "
# Command arguments, trailing and enclosed. # Command arguments, trailing and enclosed.
color cyan "^@[a-z]+[[:space:]]+.*$" color cyan "^@[a-z]+[[:space:]]+.*"
color brightmagenta "@[a-zA-Z]+\{[^}]*\}" color brightmagenta "@[a-zA-Z]+\{[^}]*\}"
# Commands themselves. # Commands themselves.
color yellow "@[a-zA-Z]+\{?" "\}" color yellow "@[a-zA-Z]+\{?|\}"
# Menu items. # Menu items.
color brightred "^\*[[:space:]]+.*::.*" color brightred "^\*[[:space:]]+.*::.*"