From eff6072bf55227f2bed76b334250c99ed1cd98cd Mon Sep 17 00:00:00 2001 From: PhilipRoman Date: Wed, 26 Jun 2019 23:03:20 +0300 Subject: [PATCH] Add "least", "fast" and "max" C fixed-width types This commit adds support for the remaining C99/C++11 fixed-width types: u?int_fastN_t u?int_leastN_t u?intmax_t --- c.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c.nanorc b/c.nanorc index e51c99b..2550299 100644 --- a/c.nanorc +++ b/c.nanorc @@ -3,7 +3,7 @@ syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" color brightred "\<[A-Z_][0-9A-Z_]+\>" color green "\<(float|double|bool|char|wchar_t|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" -color green "\<((s?size)|(char(16|32))|((u_?)?int(8|16|32|64|ptr)))_t\>" +color green "\<((s?size)|(char(16|32))|((u_?)?int(_fast|_least)?(8|16|32|64))|u?int(max|ptr))_t\>" color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" color green "\<(for|if|while|do|else|case|default|switch)\>" color green "\<(try|throw|catch|operator|new|delete)\>"