nanorc/makefile.nanorc

24 lines
967 B
Plaintext
Raw Normal View History

syntax "Makefile" "([Mm]akefile|\.ma?k)$"
header "^#!.*/(env +)?[bg]?make( |$)"
color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>"
color cyan "^(export|include|override)\>"
2018-08-09 10:09:19 +02:00
color magenta "^[^:= ]+:"
color magenta "^[^:+ ]+\+"
color red "[=,%]" "\+=|\?=|:=|&&|\|\|"
2018-08-09 10:09:19 +02:00
color blue "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]"
color blue "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]"
color blue "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]"
color blue "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
color blue "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
color black "[()$]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
2018-08-09 10:09:19 +02:00
color yellow "\$+(\{[^} ]+\}|\([^) ]+\))"
color yellow "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)"
color magenta "\$\$|\\.?"
2018-08-09 10:09:19 +02:00
color black "(^|[[:space:]])#([^{].*)?$"
color black "^ @#.*"
# Show trailing whitespace
color ,green "[[:space:]]+$"