optimize regex highlighter's regex

This commit is contained in:
Maxime Coste 2012-07-18 19:02:41 +02:00
parent 4908b2c3ef
commit 399b9b6235

View File

@ -89,7 +89,8 @@ HighlighterAndId colorize_regex_factory(Window& window,
if (params.size() != 3) if (params.size() != 3)
throw runtime_error("wrong parameter count"); 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 fg_color = parse_color(params[1]);
Color bg_color = parse_color(params[2]); Color bg_color = parse_color(params[2]);