mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
More syntax files from craigbarnes/nanorc
This commit is contained in:
parent
9975b237ac
commit
e5cc8be863
33 changed files with 593 additions and 0 deletions
22
makefile.nanorc
Normal file
22
makefile.nanorc
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
syntax "makefile" "([Mm]akefile|\.ma?k)$"
|
||||
header "^#!.*/(env +)?[bg]?make( |$)"
|
||||
|
||||
color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>"
|
||||
color cyan "^(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 brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color brightblack "^ @#.*"
|
||||
|
||||
# Show trailing whitespace
|
||||
color ,green "[[:space:]]+$"
|
||||
Loading…
Add table
Add a link
Reference in a new issue