Fix specs based highlighter documentation

Lists elements are now given as separate arguments rather than
as a single ':' separated string.

Fixes #2261
This commit is contained in:
Maxime Coste 2018-07-28 19:33:11 +10:00
parent 49437fd6e8
commit f8198b3022

View File

@ -121,11 +121,11 @@ and `range-specs`.
In this example two words will be added in the gutter: a blue Foo at In this example two words will be added in the gutter: a blue Foo at
line 1 and a bold red/yellow Bar on line 3: line 1 and a bold red/yellow Bar on line 3:
---------------------------------------------------------------------- ------------------------------------------------------------------------
declare-option line-specs my_flags declare-option line-specs my_flags
set-option window my_flags "%val{timestamp}:1|Foo:3|{red,yellow+b}Bar" set-option window my_flags %val{timestamp} '1|Foo' '3|{red,yellow+b}Bar'
add-highlighter window/ flag-lines blue my_flags add-highlighter window/ flag-lines blue my_flags
---------------------------------------------------------------------- ------------------------------------------------------------------------
*ranges* <option_name>:: *ranges* <option_name>::
use the data in the `range-specs` option of the given name to highlight use the data in the `range-specs` option of the given name to highlight
@ -135,7 +135,7 @@ add-highlighter window/ flag-lines blue my_flags
-------------------------------------------------------- --------------------------------------------------------
declare-option range-specs my_range declare-option range-specs my_range
set-option window my_range "%val{timestamp}:1.1,1.3|red" set-option window my_range %val{timestamp} '1.1,1.3|red'
add-highlighter window/ ranges my_range add-highlighter window/ ranges my_range
-------------------------------------------------------- --------------------------------------------------------
@ -147,7 +147,7 @@ add-highlighter window/ ranges my_range
-------------------------------------------------------- --------------------------------------------------------
declare-option range-specs my_range declare-option range-specs my_range
set-option window my_range "%val{timestamp}:1.1,1.3|red" set-option window my_range %val{timestamp} '1.1,1.3|red'
add-highlighter window/ replace-ranges my_range add-highlighter window/ replace-ranges my_range
-------------------------------------------------------- --------------------------------------------------------