2016-03-02 20:49:58 +01:00
|
|
|
syntax "Makefile" "([Mm]akefile|\.ma?k)$"
|
2013-06-02 12:48:33 +02:00
|
|
|
header "^#!.*/(env +)?[bg]?make( |$)"
|
2019-12-18 17:20:31 +01:00
|
|
|
magic "makefile script"
|
2019-12-18 17:13:13 +01:00
|
|
|
comment "#"
|
2013-06-02 12:48:33 +02:00
|
|
|
|
|
|
|
color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>"
|
|
|
|
color cyan "^(export|include|override)\>"
|
|
|
|
color brightmagenta "^[^:= ]+:"
|
2016-10-12 01:08:59 +02:00
|
|
|
color brightmagenta "^[^:+ ]+\+"
|
2013-06-02 12:48:33 +02:00
|
|
|
color red "[=,%]" "\+=|\?=|:=|&&|\|\|"
|
|
|
|
color brightblue "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]"
|
|
|
|
color brightblue "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]"
|
|
|
|
color brightblue "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]"
|
|
|
|
color brightblue "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
|
|
|
|
color brightblue "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
|
|
|
|
color black "[()$]"
|
|
|
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
|
|
color brightyellow "\$+(\{[^} ]+\}|\([^) ]+\))"
|
|
|
|
color brightyellow "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)"
|
|
|
|
color magenta "\$\$|\\.?"
|
|
|
|
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
|
|
|
color brightblack "^ @#.*"
|
|
|
|
|
|
|
|
# Show trailing whitespace
|
|
|
|
color ,green "[[:space:]]+$"
|