Highlighters: tweak colorize_cplusplus

This commit is contained in:
Maxime Coste 2012-01-14 14:12:20 +00:00
parent 95db828e17
commit 272f2d87a1

View File

@ -99,7 +99,7 @@ HighlighterAndId colorize_regex_factory(Window& window,
void colorize_cplusplus(DisplayBuffer& display_buffer)
{
static boost::regex values("\\<(true|false|NULL|nullptr)\\>|\\<-?\\d+[fdiu]?|'\\\\?[^']?'");
static boost::regex values("\\<(true|false|NULL|nullptr)\\>|\\<-?\\d+[fdiu]?|'((\\\\.)?|[^'\\\\])'");
colorize_regex(display_buffer, values, Color::Red);
static boost::regex builtin_types("\\<(void|int|char|unsigned|float|bool|size_t)\\>");