From 272f2d87a11adb5341ad544f0d19f6a1271f88c3 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 14 Jan 2012 14:12:20 +0000 Subject: [PATCH] Highlighters: tweak colorize_cplusplus --- src/highlighters.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index 9767755f..750aa18c 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -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)\\>");