add the last of Mike Frysinger's "c-file" regex improvements, slightly
simplified by me git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3037 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
0ed9c5fb37
commit
7de4dc8d08
|
@ -391,8 +391,9 @@ CVS code -
|
||||||
- Explain how the "none" and "default" syntaxes work. (DLR)
|
- Explain how the "none" and "default" syntaxes work. (DLR)
|
||||||
- Tweaks and additions to the "c-file" regexes: handle #defined
|
- Tweaks and additions to the "c-file" regexes: handle #defined
|
||||||
constants more accurately and use a brighter color for them,
|
constants more accurately and use a brighter color for them,
|
||||||
support more GCC builtins, and color code flow control
|
support C99 standard integer types, support more GCC builtins,
|
||||||
statements differently. (Mike Frysinger)
|
and color code flow control statements differently. (Mike
|
||||||
|
Frysinger) DLR: Slightly simplify the integer types regex.
|
||||||
- doc/man/nanorc.5:
|
- doc/man/nanorc.5:
|
||||||
- Explain how the "none" and "default" syntaxes work. (DLR)
|
- Explain how the "none" and "default" syntaxes work. (DLR)
|
||||||
- doc/man/fr/nano.1, doc/man/fr/nanorc.5:
|
- doc/man/fr/nano.1, doc/man/fr/nanorc.5:
|
||||||
|
|
|
@ -179,6 +179,7 @@
|
||||||
# syntax "c-file" "\.(c|C|cc|cpp|cxx|h|H|hh|hpp|hxx)$"
|
# syntax "c-file" "\.(c|C|cc|cpp|cxx|h|H|hh|hpp|hxx)$"
|
||||||
# color brightred "\<[A-Z_][A-Z_0-9]+\>"
|
# 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 "\<(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 "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
|
# 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 "\<(for|if|while|do|else|case|default|switch)\>"
|
||||||
# color brightyellow "\<(try|throw|catch|operator|new|delete)\>"
|
# color brightyellow "\<(try|throw|catch|operator|new|delete)\>"
|
||||||
|
|
Loading…
Reference in New Issue