Index: doc/nanorc.sample =================================================================== RCS file: /cvsroot/nano/nano/doc/nanorc.sample,v retrieving revision 1.57 diff -u -p -r1.57 nanorc.sample --- doc/nanorc.sample 10 Aug 2005 22:12:28 -0000 1.57 +++ doc/nanorc.sample 4 Oct 2005 01:42:38 -0000 @@ -177,17 +177,19 @@ ## to set the background color to black or white. ## # syntax "c-file" "\.(c|C|cc|cpp|cxx|h|H|hh|hpp|hxx)$" -# color red "\<[A-Z_]{2,}\>" +# color brightred "\<[A-Z_][A-Z_0-9]+\>" # color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|signed|unsigned|inline)\>" +# color green "\<(u|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|goto|continue|break|return)\>" +# color brightyellow "\<(for|if|while|do|else|case|default|switch)\>" # color brightyellow "\<(try|throw|catch|operator|new|delete)\>" +# color magenta "\<(goto|continue|break|return)\>" # color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" # color brightmagenta "'([^\]|(\\['abfnrtv\\]))'" "'\\(([0-7][0-7]?)|([0-3][0-7][0-7]))'" "'\\x[0-9A-Fa-f][0-9A-Fa-f]?'" ## ## GCC builtins ## -# color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(asm|builtin|inline|restrict|typeof)__" +# color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" ## ## You will in general want your comments and strings to come last, ## because syntax highlighting rules will be applied in the order they