2
0
Fork 0
nano-syntax-archived/makefile.nanorc

22 lines
961 B
Text
Raw Normal View History

2015-05-03 07:15:14 +02:00
syntax "makefile" "([Mm]akefile|\.ma?k)$"
color brightblack "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>"
color brightblack "^(export|include|override)\>"
color brightmagenta "^[^:= ]+:"
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 cyan "(^|[[:space:]])#([^{].*)?$"
color cyan "^ @#.*"
# Show trailing whitespace
color ,green "[[:space:]]+$"