commit 3f9c3bf10b3b3b008e5cc6f0874ac570b769fb11
parent 515ba325138c14a054b4b9c620db6d79370cef6c
Author: Chris Allegretta <chrisa@asty.org>
Date: Wed, 18 Sep 2002 00:00:12 +0000
- Add a better string matching sequence that includes escaped quotes (thanks to Carl E. Lindberg, who doesn't even know he helped ;-)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1277 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -116,6 +116,9 @@ CVS code -
- nanorc.sample:
- Fix the c-file regex for all caps words to be extended regex
format ({} instead of \{\}) (found by DLR).
+ - Add a better string matching sequence that includes escaped
+ quotes (thanks to Carl E. Lindberg, who doesn't even know he
+ helped ;-)
- utils.c:
charalloc()
- Switch from using calloc() to using malloc(). (David
diff --git a/nanorc.sample b/nanorc.sample
@@ -102,7 +102,7 @@
# because syntax highlighting rules will be applied in the order they are
# read in
-# color brightyellow "<[^= ]*>" "\"[^"]*\""
+# color brightyellow "<[^= ]*>" "\"(\\.|[^\\"])*\""
# color brightblue "//.*"
# color brightblue start="/\*" end="\*/"