mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
syntaxes: drop three redundant end-of-line anchors
Also fold two regexes into one, for conciseness.
This commit is contained in:
parent
f9468fa987
commit
4ac932bd21
@ -31,7 +31,7 @@ color magenta "\<(bindtextdomain|dcgettext|dcngettext)\>"
|
||||
# Strings.
|
||||
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
|
||||
# Comments.
|
||||
color brightblue "(^|[[:blank:]])#.*$"
|
||||
color brightblue "(^|[[:blank:]])#.*"
|
||||
|
||||
# Trailing whitespace.
|
||||
color ,green "[[:space:]]+$"
|
||||
|
@ -7,7 +7,7 @@ syntax po "\.pot?$"
|
||||
comment "#"
|
||||
|
||||
# Comments.
|
||||
color green "^#.*$"
|
||||
color green "^#.*"
|
||||
color yellow "Copyright|\(C\)"
|
||||
# Header fields.
|
||||
color brightred "^"X-Bugs:.*"$"
|
||||
|
@ -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:]]+.*::.*"
|
||||
|
Loading…
Reference in New Issue
Block a user