From 012425c401ba2195e999d46b807d4fb78c5a4f5b Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sat, 16 Sep 2006 02:40:31 +0000 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ doc/syntax/c.nanorc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7080d8af..75629d8c 100644 --- 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 index d0b8b1ee..3980aed9 100644 --- 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)\>" -- 2.39.5