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 <reportbug@rather.puzzling.org>.
+ * doc/dyntax/makefile.nanorc - Sample Makefile highlighting based on wiki.linuxhelp.net version.
2009-11-26 Chris Allegretta <chrisa@asty.org>
* winio.c (edit_scroll): Adjust for long lines when scrolling.
## C/C++
# include "@PKGDATADIR@/c.nanorc"
+## Makefiles
+# include "@PKGDATADIR@/makefile.nanorc"
+
## Cascading Style Sheets
# include "@PKGDATADIR@/css.nanorc"
xml.nanorc \
ocaml.nanorc \
objc.nanorc \
- fortran.nanorc
+ fortran.nanorc \
+ makefile.nanorc
EXTRA_DIST = $(pkgdata_DATA)
--- /dev/null
+# 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 "#.*$"