2023-04-03 04:13:24 +00:00
|
|
|
syntax "makefile" "([Mm]akefile|\.ma?k)$"
|
2022-12-11 17:17:48 +00:00
|
|
|
header "^#!.*/(env +)?[bg]?make( |$)"
|
|
|
|
|
2023-04-03 04:13:24 +00:00
|
|
|
# Resets everything back to plain text coloring.
|
|
|
|
# Can be used at the start of each theme file.
|
|
|
|
color white "^.*$"
|
|
|
|
color red "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>"
|
|
|
|
color red "^(export|include|override)\>"
|
|
|
|
color red "^[^:= ]+:"
|
|
|
|
color yellow "[=,%]" "\+=|\?=|:=|&&|\|\|"
|
|
|
|
color cyan "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]"
|
|
|
|
color cyan "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]"
|
|
|
|
color cyan "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]"
|
|
|
|
color cyan "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
|
|
|
|
color cyan "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
|
|
|
|
color white "[()$]"
|
|
|
|
color green ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
|
|
color blue "\$+(\{[^} ]+\}|\([^) ]+\))"
|
|
|
|
color blue "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)"
|
|
|
|
color yellow "\$\$|\\.?"
|
2022-12-11 17:17:48 +00:00
|
|
|
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
|
|
|
color brightblack "^ @#.*"
|
|
|
|
|
|
|
|
# Show trailing whitespace
|
2023-04-03 04:13:24 +00:00
|
|
|
color ,red "[[:space:]]+$"
|
|
|
|
|
|
|
|
# rainbow indent
|
|
|
|
color ,brightblack "^[[:space:]]{32}"
|
|
|
|
color ,black "^[[:space:]]{30}"
|
|
|
|
color ,brightblack "^[[:space:]]{28}"
|
|
|
|
color ,black "^[[:space:]]{26}"
|
|
|
|
color ,brightblack "^[[:space:]]{24}"
|
|
|
|
color ,black "^[[:space:]]{22}"
|
|
|
|
color ,brightblack "^[[:space:]]{20}"
|
|
|
|
color ,black "^[[:space:]]{18}"
|
|
|
|
color ,brightblack "^[[:space:]]{16}"
|
|
|
|
color ,black "^[[:space:]]{14}"
|
|
|
|
color ,brightblack "^[[:space:]]{12}"
|
|
|
|
color ,black "^[[:space:]]{10}"
|
|
|
|
color ,brightblack "^[[:space:]]{8}"
|
|
|
|
color ,black "^[[:space:]]{6}"
|
|
|
|
color ,brightblack "^[[:space:]]{4}"
|
|
|
|
color ,black "^[[:space:]]{2}"
|