From 7d3817fb3e8c2033a223e6994635832d6d9a3f1e Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 28 Jul 2004 13:03:06 +0000 Subject: [PATCH] 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 --- ChangeLog | 2 ++ doc/nanorc.sample | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index dac6bb18..77add931 100644 --- 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 index 058223af..a7c479bf 100644 --- 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$" -- 2.39.5