From 377098e617d61b14244f567bcc3bb334d32f2a18 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 27 Oct 2005 19:06:47 +0000 Subject: [PATCH] in nanorc.sample, also tweak the "c-file" regex for characters to properly reject '"' and ''' git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3058 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++-- doc/nanorc.sample | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c947dfab..3ba55783 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,8 +18,8 @@ CVS code - - nano.h: - Readd MIN_EDITOR_COLS #define. (DLR) - doc/nanorc.sample: - - Tweak the "c-file" regex for characters to properly handle - '\"'. (DLR) + - Tweak the "c-file" regex for characters to properly accept + '\"' and reject '"' and '''. (DLR) GNU nano 1.3.9 - 2005.10.23 - General: diff --git a/doc/nanorc.sample b/doc/nanorc.sample index 3fb7edff..cdaefc1f 100644 --- a/doc/nanorc.sample +++ b/doc/nanorc.sample @@ -185,7 +185,7 @@ # color brightyellow "\<(try|throw|catch|operator|new|delete)\>" # color magenta "\<(goto|continue|break|return)\>" # color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" -# color brightmagenta "'([^\]|(\\["'abfnrtv\\]))'" "'\\(([0-7][0-7]?)|([0-3][0-7][0-7]))'" "'\\x[0-9A-Fa-f][0-9A-Fa-f]?'" +# color brightmagenta "'([^"'\]|(\\["'abfnrtv\\]))'" "'\\(([0-7][0-7]?)|([0-3][0-7][0-7]))'" "'\\x[0-9A-Fa-f][0-9A-Fa-f]?'" ## ## GCC builtins ##