From 4811b8145667f6ec0a89e871905424aed30eb4d2 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 30 Mar 2005 17:03:43 +0000 Subject: [PATCH] in nanorc.sample, merge Neil Brown's C++ regexes into the "c-file" regexes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2440 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ doc/nanorc.sample | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5ac54172..6a7a6795 100644 --- a/ChangeLog +++ b/ChangeLog @@ -88,6 +88,8 @@ CVS code - - nanorc.sample: - Fix the description for the whitespace option to mention that only single-column characters are allowed. (DLR) + - Add C++ regexes. (Neil Brown, merged into c-file regexes by + DLR) - nano.1, nano.texi: - Mention the -? alias for -h/--help, and add various consistency fixes. (DLR) diff --git a/doc/nanorc.sample b/doc/nanorc.sample index 6ba03e28..bb4b5861 100644 --- a/doc/nanorc.sample +++ b/doc/nanorc.sample @@ -140,10 +140,12 @@ ## color will use a transparent color. If you don't want this, be sure ## to set the background color to black or white. ## -# syntax "c-file" "\.(c|h)$" +# syntax "c-file" "\.(c|C|cc|cpp|h|H|hh|hpp)$" # color red "\<[A-Z_]{2,}\>" -# color green "\<(float|double|char|int|short|long|enum|void|static|const|struct|union|typedef|extern|signed|unsigned|inline)\>" -# color brightyellow "\<(for|if|while|do|else|case|switch|goto|continue|break|return)\>" +# color green "\<(float|double|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|signed|unsigned|inline)\>" +# color green "\<(bool|class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" +# color brightyellow "\<(for|if|while|do|else|case|default|switch|goto|continue|break|return)\>" +# color brightyellow "\<(try|throw|catch|operator|new|delete)\>" # color brightcyan "^ *# *(define|undef|include|ifn?def|endif|elif|else|if)" # color brightmagenta "'([^\]|(\\['abfnrtv\\]))'" "'\\(([0-7][0-7]?)|([0-3][0-7][0-7]))'" "'\\x[0-9A-Fa-f][0-9A-Fa-f]?'" ## -- 2.39.5