From 9a4d8d5f4d36ed64563da05970d686a6a364628d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 24 Nov 2011 19:13:58 +0000 Subject: [PATCH] Filters: tweak colorize_cplusplus --- src/filters.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filters.cc b/src/filters.cc index 8aa3399a..d527e473 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -93,7 +93,7 @@ FilterAndId colorize_regex_factory(Window& window, void colorize_cplusplus(DisplayBuffer& display_buffer) { - static boost::regex preprocessor("(\\`|(?<=\\n))\\h*#\\h*[^\\n]*(?=\\n)"); + static boost::regex preprocessor("(\\`|(?<=\\n))\\h*#\\h*[^\\n]*"); colorize_regex(display_buffer, preprocessor, Color::Magenta); static boost::regex comments("//[^\\n]*\\n");