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
master
David Lawrence Ramsey 2005-03-30 17:03:43 +00:00
parent 050b13ae5d
commit 4811b81456
2 changed files with 7 additions and 3 deletions

View File

@ -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)

View File

@ -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]?'"
##