syntax: makefile: colorize also multiple targets

Multiple targets are separated by spaces.  Furthermore, there
may be spaces before the first target and before the colon.
This commit is contained in:
Benno Schulenberg 2024-09-06 09:49:28 +02:00
parent 28642cd047
commit 468613c9db
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ color magenta "^((override +)?(un)?define|endef|(un)?export|private|vpath)\>"
color blue "\$+[{(][a-zA-Z0-9_-]+[})]"
# Targets.
color brightblue "^[^ ]+:"
color brightblue "^[^ ].*:"
# Comments.
color green "(^|[[:blank:]]+)#.*"