From: Chris Allegretta Date: Sat, 28 Nov 2009 04:11:04 +0000 (+0000) Subject: * doc/dyntax/makefile.nanorc - Sample Makefile highlighting based on wiki... X-Git-Tag: v2.2.0~3 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=752830573aeea5daeafe4214c4fd23b3c01534bc;p=nano.git * doc/dyntax/makefile.nanorc - Sample Makefile highlighting based on wiki.linuxhelp.net version. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4447 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 5f2dbca7..4792aae6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ first in an effort to not corrupt the screen, which contradicts Pico but is consistent with almost all other text editors. Fixes Savannah bug 28110/Debian bug 460510 reported by Tim Connors . + * doc/dyntax/makefile.nanorc - Sample Makefile highlighting based on wiki.linuxhelp.net version. 2009-11-26 Chris Allegretta * winio.c (edit_scroll): Adjust for long lines when scrolling. diff --git a/doc/nanorc.sample.in b/doc/nanorc.sample.in index dcb46d94..4d5a01d1 100644 --- a/doc/nanorc.sample.in +++ b/doc/nanorc.sample.in @@ -238,6 +238,9 @@ ## C/C++ # include "@PKGDATADIR@/c.nanorc" +## Makefiles +# include "@PKGDATADIR@/makefile.nanorc" + ## Cascading Style Sheets # include "@PKGDATADIR@/css.nanorc" diff --git a/doc/syntax/Makefile.am b/doc/syntax/Makefile.am index 828bd7bb..9566a182 100644 --- a/doc/syntax/Makefile.am +++ b/doc/syntax/Makefile.am @@ -22,6 +22,7 @@ pkgdata_DATA = asm.nanorc \ xml.nanorc \ ocaml.nanorc \ objc.nanorc \ - fortran.nanorc + fortran.nanorc \ + makefile.nanorc EXTRA_DIST = $(pkgdata_DATA) diff --git a/doc/syntax/makefile.nanorc b/doc/syntax/makefile.nanorc new file mode 100644 index 00000000..7b639dde --- /dev/null +++ b/doc/syntax/makefile.nanorc @@ -0,0 +1,8 @@ +# unattributed syntax highlighting example from wiki.linuxhelp.net/ + +syntax "makefile" "Makefile[^/]*$" +color red "[:=]" +color magenta "\<(if|ifeq|else|endif)\>" +color blue "\$+[{(][a-Z0-9_-]+[})]" +color brightblue "^[^ ]+:" +color green "#.*$"