mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-21 18:41:29 +03:00
optimize regex highlighter's regex
This commit is contained in:
parent
4908b2c3ef
commit
399b9b6235
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user