diff --git a/src/highlighters.cc b/src/highlighters.cc index 25cfbfe49..955d0f0c5 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -89,7 +89,8 @@ HighlighterAndId colorize_regex_factory(Window& window, if (params.size() != 3) throw runtime_error("wrong parameter count"); - Regex ex(params[0].begin(), params[0].end()); + Regex ex(params[0].begin(), params[0].end(), + boost::regex::perl | boost::regex::optimize); Color fg_color = parse_color(params[1]); Color bg_color = parse_color(params[2]);