From 5c6379d64f3d84c28a57354a0d9265ca1d2f133b Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Sat, 18 May 2002 03:13:03 +0000
Subject: [PATCH] nanorc.sample - Put in much less crappy example regex rules
 for c-file

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1216 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog     |  2 ++
 nanorc.sample | 12 +++++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a8e8122d..1f4035fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@ CVS Code -
 - global.c:
   shortcut_init()
 	- Rework IFHELP macro (David Benbennick).
+- nanorc.sample
+	- Put in much less crappy example regex rules for c-file.
 
 GNU nano 1.1.9 - 05/12/2002
 - General:
diff --git a/nanorc.sample b/nanorc.sample
index 54c1fde4..677ff3e2 100644
--- a/nanorc.sample
+++ b/nanorc.sample
@@ -87,15 +87,17 @@
 # to set the background color to black or white.
 #
 # syntax "c-file" ".*\.c" ".*\.h"
-# color brightred "float " "char " "int " "void "  "NULL" "[A-Z_]\{2,\}" 
-# color brightred "static" "const" "[\ ]struct" "^struct" "if " "while[\ \n\(]" 
-# color brightred "do[\ \n\(]" "else[\ \n]" "case " "switch " "break;"
-# color brightcyan "#define" "#include" "#ifn*def" "#endif" "#elif" "#else" "#if "
+# color red "\<[A-Z_]\{2,\}\>" 
+# color green "\<float\>" "\<char\>" "\<int\>" "\<void\>"
+# color green "\<static\>" "\<const\>" "\<struct\>" 
+# color brightyellow "\<if\>" "\<while\>" "\<do\>" "\<else\>" "\<case\>" "\<switch\>"
+# color brightcyan "#define" "#include" "#ifn*def" "#endif" 
+# color brightcyan "#elif" "#else" "#if"
 
 # You will in general want your comments and strings to come last, becase
 # syntax highlighting rules will be applied in the order they are read in
 
-# color brightyellow "<.*[^=\ ]*>" "\".*\""
+# color brightyellow "<[^= ]*>" "\"[^"]*\""
 # color brightblue "//.*"
 # color brightblue start="/\*.*" end="\*/"
 
-- 
GitLab