From ec636ce04b65fe45304bdb49566002bda32a1949 Mon Sep 17 00:00:00 2001 From: Olivier Perret Date: Thu, 11 May 2017 20:40:17 +0200 Subject: [PATCH] update line-flags and flag_lines doc to reflect current status --- README.asciidoc | 8 +++++--- doc/manpages/highlighters.asciidoc | 6 +++--- doc/manpages/options.asciidoc | 4 ++++ src/highlighters.cc | 5 ++--- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index f7b35e91..ff5807d2 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -867,6 +867,9 @@ Options are typed, their type can be (`.,.` or `.+`) and a face (separated by `|`), except for the first element which is just the timestamp of the buffer. + * `line-flags`: a `:` separated list of a line number and a corresponding + flag (`|`), except for the first element which is just + the timestamp of the buffer. * `completions`: a `:` separated list of `||` candidates, except for the first element which follows the `.[+]@` format to define where the @@ -1230,9 +1233,8 @@ General highlighters are: yellow on red background. * `dynregex`: Similar to regex, but expand (like a command parameter would) the given expression before building a regex from the result. - * `flag_lines `: add a column in front of text, and display the - given flag in it for everly line contained in the int-list option named - . + * `flag_lines `: add a column in front of the buffer, + and display the flags specified in , using * `show_matching`: highlight matching char of the character under the selections' cursor using `MatchingChar` face. * `show_whitespaces \<-tab \<-tabpad \<-lf \<-spc \<-nbsp `: display symbols on top of whitespaces to make them more explicit using the Whitespace face. diff --git a/doc/manpages/highlighters.asciidoc b/doc/manpages/highlighters.asciidoc index 569b300d..ad941afb 100644 --- a/doc/manpages/highlighters.asciidoc +++ b/doc/manpages/highlighters.asciidoc @@ -43,9 +43,9 @@ General highlighters Similar to regex, but expand (like a command parameter would) the given expression before building a regex from the result -*flag_lines* :: - add a column in front of text, and display the given flag in it for - every line contained in the int-list option named +*flag_lines* :: + add a column in front of the buffer, and display the flags specified + in , using *show_matching*:: highlight matching char of the character under the selections' cursor diff --git a/doc/manpages/options.asciidoc b/doc/manpages/options.asciidoc index d5954a17..4d9ccd06 100644 --- a/doc/manpages/options.asciidoc +++ b/doc/manpages/options.asciidoc @@ -27,6 +27,10 @@ Types (`.,.` or `.+`) and a face (separated by `|`), except for the first element which is just the timestamp of the buffer. +*line-flags*:: + a `:` separated list of a line number and a corresponding flag + (`|`), except for the first element which is just the + timestamp of the buffer. *completions*:: a `:` separated list of `||` candidates, except for the first element which follows the diff --git a/src/highlighters.cc b/src/highlighters.cc index 4cc576c3..e673a514 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -1879,9 +1879,8 @@ void register_highlighters() registry.insert({ "flag_lines", { FlagLinesHighlighter::create, - "Parameters: