2020-04-20 20:15:43 +03:00
|
|
|
## Syntax highlighting for Makefiles.
|
2009-11-28 07:11:04 +03:00
|
|
|
|
2018-05-18 15:52:46 +03:00
|
|
|
syntax makefile "(/((GNU)?m|M)akefile[^/]*$|\.(make|mk)$)"
|
2017-11-19 13:10:53 +03:00
|
|
|
magic "makefile script"
|
2024-02-05 13:34:18 +03:00
|
|
|
|
|
|
|
tabgives " "
|
2016-05-25 23:13:50 +03:00
|
|
|
comment "#"
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2018-05-30 12:29:08 +03:00
|
|
|
# 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.
|
2009-12-04 06:46:04 +03:00
|
|
|
color blue "\$+[{(][a-zA-Z0-9_-]+[})]"
|
2018-05-30 12:29:08 +03:00
|
|
|
|
|
|
|
# Targets.
|
2009-11-28 07:11:04 +03:00
|
|
|
color brightblue "^[^ ]+:"
|
2018-05-30 12:29:08 +03:00
|
|
|
|
|
|
|
# Comments.
|
2021-04-27 12:18:41 +03:00
|
|
|
color green "(^|[[:blank:]]+)#.*"
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2018-05-30 12:29:08 +03:00
|
|
|
# Trailing whitespace.
|
2014-02-27 01:42:53 +04:00
|
|
|
color ,green "[[:space:]]+$"
|