Skip to content

Commit

Permalink
syntax: makefile: colorize also multiple targets
Browse files Browse the repository at this point in the history
Multiple targets are separated by spaces.  Furthermore, there
may be spaces before the first target and before the colon.
  • Loading branch information
Benno Schulenberg committed Sep 6, 2024
1 parent 28642cd commit 468613c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/makefile.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -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:]]+)#.*"
Expand Down

0 comments on commit 468613c

Please sign in to comment.