nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

makefile.nanorc (552B)


      1 ## Syntax highlighting for Makefiles.
      2 
      3 syntax makefile "(^|/)((GNU)?m|M)akefile[^/]*$|\.(make|mk)$"
      4 magic "makefile script"
      5 
      6 tabgives "	"
      7 comment "#"
      8 
      9 # Assignments.
     10 color red " (:?:|\+|\?)?= "
     11 
     12 # Keywords.
     13 color magenta "^(if|ifn?def|ifn?eq|else|endif|(-|s)?include)\>"
     14 color magenta "^((override +)?(un)?define|endef|(un)?export|private|vpath)\>"
     15 
     16 # Variable expansions.
     17 color blue "\$+[{(][[:alnum:]_-]+[})]"
     18 
     19 # Targets.
     20 color brightblue "^[^	].*:"
     21 
     22 # Comments.
     23 color green "(^|[[:blank:]]+)#.*"
     24 
     25 # Trailing whitespace.
     26 color ,green "[[:space:]]+$"