From 1d1927647ada77e897b1763810ba6f068b0a6705 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 9 Jul 2015 13:53:21 +0100 Subject: [PATCH] Fix formatting --- src/highlighters.cc | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index cd13daad0..de4e6ed1a 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -455,21 +455,22 @@ HighlighterAndId create_search_highlighter(HighlighterParameters params) { if (params.size() != 0) throw runtime_error("wrong parameter count"); - auto get_face = [](const Context& context){ - return FacesSpec{ { 0, "Search" } }; - }; - auto get_regex = [](const Context& context){ - auto s = context.main_sel_register_value("/"); - try - { - return s.empty() ? Regex{} : Regex{s.begin(), s.end()}; - } - catch (RegexError& err) - { - return Regex{}; - } - }; - return {"hlsearch", make_dynamic_regex_highlighter(get_regex, get_face)}; + + auto get_face = [](const Context& context){ + return FacesSpec{ { 0, "Search" } }; + }; + auto get_regex = [](const Context& context){ + auto s = context.main_sel_register_value("/"); + try + { + return s.empty() ? Regex{} : Regex{s.begin(), s.end()}; + } + catch (RegexError& err) + { + return Regex{}; + } + }; + return {"hlsearch", make_dynamic_regex_highlighter(get_regex, get_face)}; } HighlighterAndId create_regex_option_highlighter(HighlighterParameters params)