forked from richrad/nanorc-mac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.nanorc
22 lines (20 loc) · 842 Bytes
/
makefile.nanorc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
syntax "makefile" "([Mm]akefile|\.ma?k)$"
header "^#!.*/(env +)?[bg]?make( |$)"
KEYWORD: "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>"
KEYWORD: "^(export|include|override)\>"
SECTION: "^[^:= ]+:"
OPERATOR: "[=,%]" "\+=|\?=|:=|&&|\|\|"
FUNCTION: "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]"
FUNCTION: "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]"
FUNCTION: "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]"
FUNCTION: "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
FUNCTION: "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
PLAIN: "[()$]"
+STRING
VARIABLE: "\$+(\{[^} ]+\}|\([^) ]+\))"
VARIABLE: "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)"
ESCAPE: "\$\$|\\.?"
+HASHCOMMENT
COMMENT: "^ @#.*"
# Show trailing whitespace
color ,green "[[:space:]]+$"