From dc9c40a56dc0dd780ad54ef001d9e96c440025fc Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sun, 7 Sep 2003 23:54:57 +0000
Subject: [PATCH] Brand Huntsman's improved nanorc regexes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1545 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog         |  4 ++--
 doc/nanorc.sample | 21 +++++++++++++--------
 2 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9023a2ff..e132e78f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -94,8 +94,8 @@ CVS code -
 - nanorc.sample:
 	- Remove duplicate "historylog" entry, remove "keypad" entry,
 	  and add "rebinddelete" entry. (DLR)
-	- Update the regexes for nanorc files. (Brand Huntsman, slightly
-	  modified by DLR)
+	- Update and add comments to the regexes for nanorc files.
+	  (Brand Huntsman)
 	- Fix an attempt at a bright background color in the sample Java
 	  source regexes. (DLR)
 	- Since tabs are shown as groups of spaces, they are interpreted
diff --git a/doc/nanorc.sample b/doc/nanorc.sample
index 8e80bf71..a1fdf61c 100644
--- a/doc/nanorc.sample
+++ b/doc/nanorc.sample
@@ -197,11 +197,16 @@
 
 ## Here is an example for your .nanorc
 ##
-# syntax "nanorc" "(\.)?nanorc$"
-# color brightwhite "^ *(set|unset|syntax|color).*$"
-# color cyan "^ *(set|unset) +(autoindent|backup|const|cut|fill|historylog|multibuffer|noconvert|nofollow|nohelp|nowrap|operatingdir|preserve|quotestr|rebinddelete|regexp|smooth|speller|suspend|tabsize|tempfile|view)"
-# color green "^ *(set|unset|syntax)\>"
-# color yellow "^ *color +(bright)?(white|black|red|blue|green|yellow|magenta|cyan)(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
-# color magenta "^ *color\>" "\<(start|end)="
-# color white "\"(\\.|[^\"])*\""
-# color blue "^ *#.*$"
+#syntax "nanorc" "(\.|/|)nanorc$"
+## highlight possible errors and parameters
+#color brightwhite "^ *(set|unset|syntax|color).*$"
+## set, unset and syntax
+#color cyan "^ *(set|unset) +(autoindent|backup|const|cut|fill|historylog|multibuffer|noconvert|nofollow|nohelp|nowrap|operatingdir|preserve|quotestr|rebinddelete|regexp|smooth|speller|suspend|tabsize|tempfile|view)"
+#color green "^ *(set|unset|syntax)\>"
+## colors
+#color yellow "^ *color +(bright)?(white|black|red|blue|green|yellow|magenta|cyan)(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
+#color magenta "^ *color\>" "\<(start|end)="
+## strings
+#color white "\"(\\.|[^\"])*\""
+## comments
+#color blue "^ *#.*$"
-- 
GitLab