]> git.wh0rd.org Git - nano.git/commitdiff
in nanorc.sample, merge Neil Brown's C++ regexes into the "c-file"
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 30 Mar 2005 17:03:43 +0000 (17:03 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 30 Mar 2005 17:03:43 +0000 (17:03 +0000)
regexes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2440 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/nanorc.sample

index 5ac54172564d565cd3ea974620f28602c5bc0309..6a7a67950a970cc10bb26e4e5066e3dbc30e83df 100644 (file)
--- 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)
index 6ba03e286909a5bfbc5ac69429a42423072d2a69..bb4b586146dc807f4cebf31755f1034f1a8a84db 100644 (file)
 ## 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]?'"
 ##