From: David Lawrence Ramsey Date: Thu, 30 Mar 2006 20:26:58 +0000 (+0000) Subject: in nanorc.sample, simplify the "c-file" regex for characters X-Git-Tag: v1.3.12~339 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f420bea2cae1d46480ae50a6f54a9596490e89fd;p=nano.git in nanorc.sample, simplify the "c-file" regex for characters git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3339 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index dbfe067c..28f0bc29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,7 +11,7 @@ CVS code - - Update the copyright years to include 2006. (DLR) - doc/nanorc.sample: - Tweak the "c-file" regex for characters to accept '"' again, - as it's apparently valid. (DLR) + as it's apparently valid, and simplify it. (DLR) - Simplify the "shellscript" regex for command line options. (DLR) - Replace instances of \" with ", since quotes inside string diff --git a/doc/nanorc.sample b/doc/nanorc.sample index 18628e22..43855b16 100644 --- a/doc/nanorc.sample +++ b/doc/nanorc.sample @@ -198,7 +198,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]{,2})|([0-3][0-7]{,2}))'" "'\\x[0-9A-Fa-f]{,2}'" ## ## GCC builtins ##