mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
3e1fc6385b
The different color will make the name stand out, as it should, instead of looking the same as all the regex strings.
15 lines
336 B
Plaintext
15 lines
336 B
Plaintext
## Here is an example for Makefiles.
|
|
|
|
syntax makefile "Makefile[^/]*$" "\.(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:]]+$"
|