mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-29 08:03:19 +03:00
cdaa43b396
Making it independent from the `tabstospaces` setting. And remove the now-redundant suggestion from the sample nanorc.
27 lines
550 B
Plaintext
27 lines
550 B
Plaintext
## Syntax highlighting for Makefiles.
|
|
|
|
syntax makefile "(/((GNU)?m|M)akefile[^/]*$|\.(make|mk)$)"
|
|
magic "makefile script"
|
|
|
|
tabgives " "
|
|
comment "#"
|
|
|
|
# Assignments.
|
|
color red " (:?:|\+|\?)?= "
|
|
|
|
# Keywords.
|
|
color magenta "^(if|ifn?def|ifn?eq|else|endif|(-|s)?include)\>"
|
|
color magenta "^((override +)?(un)?define|endef|(un)?export|private|vpath)\>"
|
|
|
|
# Variable expansions.
|
|
color blue "\$+[{(][a-zA-Z0-9_-]+[})]"
|
|
|
|
# Targets.
|
|
color brightblue "^[^ ]+:"
|
|
|
|
# Comments.
|
|
color green "(^|[[:blank:]]+)#.*"
|
|
|
|
# Trailing whitespace.
|
|
color ,green "[[:space:]]+$"
|