From 75d2eb2b79856800f322b486aab3d244c66569a1 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 6 Oct 2017 13:47:30 +0800 Subject: [PATCH] formatting tweak --- src/highlighters.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index b1b48583..d21af0af 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -517,7 +517,7 @@ HighlighterAndId create_dynamic_regex_highlighter(HighlighterParameters params) GlobalScope::instance().options()[tokens[0].content].is_of_type()) { String option_name = tokens[0].content; - auto get_regex = [option_name](const Context& context) { + auto get_regex = [option_name](const Context& context) { return context.options()[option_name].get(); }; return {format("dynregex_{}", expr), make_dynamic_regex_highlighter(get_regex, get_face)};