diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-07-18 19:02:41 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-07-18 19:02:41 +0200 |
| commit | 399b9b623509368da3eab4b6f76034c6c8deedf4 (patch) | |
| tree | 00ba766560160dd75a8c093c31c2f3971480152e /src | |
| parent | 4908b2c3efcf028adcc1625fb9108014a7e49d47 (diff) | |
optimize regex highlighter's regex
Diffstat (limited to 'src')
| -rw-r--r-- | src/highlighters.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc index 25cfbfe4..955d0f0c 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]); |
