and simplify "signed" and "unsigned" in them
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3878
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
- 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:
##
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)\>"