summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2011-11-24 19:13:58 +0000
committerMaxime Coste <frrrwww@gmail.com>2011-11-24 19:13:58 +0000
commit9a4d8d5f4d36ed64563da05970d686a6a364628d (patch)
tree8d224eaed518b6f6421ccfe683d3f0a531338971 /src
parentdcfb5e15f2d77c1d21dcbdd7331d907fa0e60127 (diff)
Filters: tweak colorize_cplusplus
Diffstat (limited to 'src')
-rw-r--r--src/filters.cc2
1 files changed, 1 insertions, 1 deletions
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");