1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-21 10:40:53 +03:00

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)
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]);