Recognize not just "Makefile" but also "makefile" and "GNUmakefile". And recognize these only when they are the full filenames, not when they are the tail part of a longer name. Signed-off-by: Cristian Caloghera <cristi.caloghera@gmail.com>
15 lines
347 B
Plaintext
15 lines
347 B
Plaintext
## Here is an example for Makefiles.
|
|
|
|
syntax makefile "(/((GNU)?m|M)akefile[^/]*$|\.(make|mk)$)"
|
|
magic "makefile script"
|
|
comment "#"
|
|
|
|
color red "[:=]"
|
|
color magenta "\<(if|ifeq|else|endif)\>"
|
|
color blue "\$+[{(][a-zA-Z0-9_-]+[})]"
|
|
color brightblue "^[^ ]+:"
|
|
color green "(^|[[:space:]]+)#.*"
|
|
|
|
## Trailing whitespace.
|
|
color ,green "[[:space:]]+$"
|