Filters: tweak colorize_cplusplus

This commit is contained in:
Maxime Coste 2011-11-24 19:13:58 +00:00
parent dcfb5e15f2
commit 9a4d8d5f4d

View File

@ -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");