@@ -225,7 +225,7 @@ prop_add({lnum}, {col}, {props})
225225 GetLnum()->prop_add(col, props)
226226<
227227 *prop_add_list()*
228- prop_add_list({props} , [[ {lnum} , {col} , {end-lnum} , {end-col} ] , ...])
228+ prop_add_list({props} , [{item} , ...])
229229 Similar to prop_add(), but attaches a text property at
230230 multiple positions in a buffer.
231231
@@ -237,12 +237,18 @@ prop_add_list({props}, [[{lnum}, {col}, {end-lnum}, {end-col}], ...])
237237 type name of the text property type
238238 All fields except "type" are optional.
239239
240- The second argument is a List of Lists where each list
241- specifies the starting and ending position of the text. The
242- first two items {lnum} and {col} specify the starting position
243- of the text where the property will be attached and the last
244- two items {end-lnum} and {end-col} specify the position just
245- after the text.
240+ The second argument is a List of items, where each {item} is a
241+ list that specifies the starting and ending position of the
242+ text: [{lnum} , {col} , {end-lnum} , {end-col} ]
243+ or: [{lnum} , {col} , {end-lnum} , {end-col} , {id} ]
244+
245+ The first two items {lnum} and {col} specify the starting
246+ position of the text where the property will be attached.
247+ The next two items {end-lnum} and {end-col} specify the
248+ position just after the text.
249+ An optional fifth item {id} can be used to give a different ID
250+ to a property. When omitted the ID from {props} is used,
251+ falling back to zero if none are present.
246252
247253 It is not possible to add a text property with a "text" field
248254 here.
0 commit comments