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