update line-flags and flag_lines doc to reflect current status

This commit is contained in:
Olivier Perret 2017-05-11 20:40:17 +02:00
parent 75e6b54ae2
commit ec636ce04b
4 changed files with 14 additions and 9 deletions

View File

@ -867,6 +867,9 @@ Options are typed, their type can be
(`<begin line>.<begin column>,<end line>.<end column>` or
`<begin line>.<end line>+<length>`) 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 (`<line>|<flag text>`), except for the first element which is just
the timestamp of the buffer.
* `completions`: a `:` separated list of `<text>|<docstring>|<menu text>`
candidates, except for the first element which follows the
`<line>.<column>[+<length>]@<timestamp>` 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 <flag> <option_name>`: add a column in front of text, and display the
given flag in it for everly line contained in the int-list option named
<option_name>.
* `flag_lines <face> <option_name>`: add a column in front of the buffer,
and display the flags specified in <option_name>, using <face>
* `show_matching`: highlight matching char of the character under the selections'
cursor using `MatchingChar` face.
* `show_whitespaces \<-tab <separator> \<-tabpad <separator> \<-lf <separator> \<-spc <separator> \<-nbsp <separator>`: display symbols on top of whitespaces to make them more explicit using the Whitespace face.

View File

@ -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* <flag> <option_name>::
add a column in front of text, and display the given flag in it for
every line contained in the int-list option named <option_name>
*flag_lines* <face> <option_name>::
add a column in front of the buffer, and display the flags specified
in <option_name>, using <face>
*show_matching*::
highlight matching char of the character under the selections' cursor

View File

@ -27,6 +27,10 @@ Types
(`<begin line>.<begin column>,<end line>.<end column>` or
`<begin line>.<begin column>+<length>`) 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
(`<line>|<flag text>`), except for the first element which is just the
timestamp of the buffer.
*completions*::
a `:` separated list of `<text>|<docstring>|<menu text>`
candidates, except for the first element which follows the

View File

@ -1879,9 +1879,8 @@ void register_highlighters()
registry.insert({
"flag_lines",
{ FlagLinesHighlighter::create,
"Parameters: <option name> <bg color>\n"
"Display flags specified in the line-flag-list option <option name>\n"
"A line-flag is written: <line>|<fg color>|<text>, the list is : separated" } });
"Parameters: <face> <option name>\n"
"Display flags specified in the line-flags option <option name> with <face>"} });
registry.insert({
"ranges",
{ RangesHighlighter::create,