commit 7d3817fb3e8c2033a223e6994635832d6d9a3f1e
parent 331e659e98f93cbc27fa07acc7c6d97d353b2fbc
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Wed, 28 Jul 2004 13:03:06 +0000
add Mike Frysinger's sample regexes for patch files
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1868 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -146,6 +146,8 @@ CVS code -
value can't be larger than COLS. (DLR)
- Allow the user to exit the help browser via Ctrl-C as well as
Ctrl-X, for consistency with the file browser. (DLR)
+- nanorc.sample:
+ - Add sample regexes for patch files. (Mike Frysinger)
GNU nano 1.3.3 - 2004.06.28
- General:
diff --git a/doc/nanorc.sample b/doc/nanorc.sample
@@ -225,6 +225,17 @@
# color brightblue start="/\*\*" end="\*/"
# color brightgreen,green " +$"
+## Here is an example for patch files
+##
+# syntax "patch" "\.(patch|diff)$"
+# color brightgreen "^\+.*"
+# color green "^\+\+\+.*"
+# color brightblue "^ .*"
+# color brightred "^-.*"
+# color red "^---.*"
+# color brightyellow "^@@.*"
+# color magenta "^diff.*"
+
## Here is an example for your .nanorc
##
#syntax "nanorc" "(\.|/|)nanorc$"