syntaxes: drop three redundant end-of-line anchors

Also fold two regexes into one, for conciseness.
master
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.
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
# Comments.
color brightblue "(^|[[:blank:]])#.*$"
color brightblue "(^|[[:blank:]])#.*"
# Trailing whitespace.
color ,green "[[:space:]]+$"

View File

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

View File

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