From 4eb8a100a84da0db5517e603ac8731ba38125925 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Thu, 21 Oct 2021 12:34:05 +0200 Subject: [PATCH] src highlighters: Sort instantiations --- src/highlighters.cc | 120 ++++++++++++++++++++++---------------------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index 448427ec..2353e347 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" } }); - registry.insert({ - "show-whitespaces", - { ShowWhitespacesHighlighter::create, - "Display whitespaces using symbols \n" - "Parameters: -tab -tabpad -lf -spc -nbsp \n" } }); - 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" } }); + "default-region", + { RegionsHighlighter::create_default_region, + "Parameters: ...\n" + "Define the default region of a regions highlighter" } }); registry.insert({ "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({ + "flag-lines", + { FlagLinesHighlighter::create, + "Parameters: