commit 012425c401ba2195e999d46b807d4fb78c5a4f5b
parent f5a720dfda0c83ab76d9804a4ac66443b458358a
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 16 Sep 2006 02:40:31 +0000
in doc/syntax/c.nanorc, add "size_t" and "ssize_t" to the types regexes,
and simplify "signed" and "unsigned" in them
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3878 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -8,6 +8,10 @@ CVS code -
- winio.c:
get_input()
- Simplify to avoid an unnecessary key_buffer_len check. (DLR)
+- doc/syntax/c.nanorc:
+ - Add "size_t" and "ssize_t" to the types regexes. (DLR,
+ suggested by Mike Frysinger)
+ - Simplify "signed" and "unsigned" in the types regexes. (DLR)
GNU nano 1.9.99pre1 - 2006.08.29
- General:
diff --git a/doc/syntax/c.nanorc b/doc/syntax/c.nanorc
@@ -2,8 +2,8 @@
##
syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
color brightred "\<[A-Z_][0-9A-Z_]+\>"
-color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|signed|unsigned|inline)\>"
-color green "\<(u_?)?int(8|16|32|64|ptr)_t\>"
+color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
+color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>"
color green "\<(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)\>"
color brightyellow "\<(try|throw|catch|operator|new|delete)\>"