From 4eb8a100a84da0db5517e603ac8731ba38125925 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Thu, 21 Oct 2021 12:34:05 +0200 Subject: [PATCH 1/2] src highlighters: Sort instantiations --- src/highlighters.cc | 118 ++++++++++++++++++++++---------------------- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index 448427ec23..2353e347d7 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -2281,33 +2281,29 @@ void register_highlighters() HighlighterRegistry& registry = HighlighterRegistry::instance(); registry.insert({ - "number-lines", - { LineNumbersHighlighter::create, - "Display line numbers \n" - "Parameters: -relative, -hlcursor, -separator , -cursor-separator , -min-digits \n" } }); + "column", + { create_column_highlighter, + "Parameters: \n" + "Highlight the column given by evaluating with " } }); registry.insert({ - "show-matching", - { create_matching_char_highlighter, - "Apply the MatchingChar face to the char matching the one under the cursor" } }); + "default-region", + { RegionsHighlighter::create_default_region, + "Parameters: ...\n" + "Define the default region of a regions highlighter" } }); registry.insert({ - "show-whitespaces", - { ShowWhitespacesHighlighter::create, - "Display whitespaces using symbols \n" - "Parameters: -tab -tabpad -lf -spc -nbsp \n" } }); + "dynregex", + { create_dynamic_regex_highlighter, + "Parameters: : :...\n" + "Evaluate expression at every redraw to gather a regex" } }); registry.insert({ "fill", { create_fill_highlighter, "Fill the whole highlighted range with the given face" } }); registry.insert({ - "regex", - { RegexHighlighter::create, - "Parameters: : :...\n" - "Highlights the matches for captures from the regex with the given faces" } }); - registry.insert({ - "dynregex", - { create_dynamic_regex_highlighter, - "Parameters: : :...\n" - "Evaluate expression at every redraw to gather a regex" } }); + "flag-lines", + { FlagLinesHighlighter::create, + "Parameters: