Files
zyedidia.micro/runtime/syntax/makefile.micro
2017-03-01 17:08:56 -05:00

21 lines
986 B
Plaintext

syntax "makefile" "([Mm]akefile|\.ma?k)$"
header "^#!.*/(env +)?[bg]?make( |$)"
color preproc "\b(ifeq|ifdef|ifneq|ifndef|else|endif)\b"
color preproc "^(export|include|override)\b"
color symbol.operator "^[^:= ]+:"
color symbol.operator "[=,%]" "\+=|\?=|:=|&&|\|\|"
color statement "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]"
color statement "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]"
color statement "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]"
color statement "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
color statement "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
color identifier "^.+:"
color identifier "[()$]"
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
color identifier "\$+(\{[^} ]+\}|\([^) ]+\))"
color identifier "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)"
color identifier "\$\$|\\.?"
color comment "(^|[[:space:]])#([^{].*)?$"
color comment "^ @#.*"