summaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-24 22:29:24 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-24 22:29:24 +0200
commitcc0750dc6e878394ab0fd922b7ea4280918ae406 (patch)
tree1af2eff76db96f7f794b32735be3de2ab27505fe /runtime/doc
parent4eb6531b03445b4d492bc52fea0b6dcd886583af (diff)
downloadvim-cc0750dc6e878394ab0fd922b7ea4280918ae406.zip
patch 8.0.0672: third item of synconcealed() changes too often
Problem: Third item of synconcealed() changes too often. (Dominique Pelle) Solution: Reset the sequence number at the start of each line.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/eval.txt23
1 files changed, 16 insertions, 7 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 51e806b21..6c5155022 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 8.0. Last change: 2017 Jun 23
+*eval.txt* For Vim version 8.0. Last change: 2017 Jun 24
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -7663,12 +7663,21 @@ synconcealed({lnum}, {col}) *synconcealed()*
is 1, the second item contains the text which will be
displayed in place of the concealed text, depending on the
current setting of 'conceallevel' and 'listchars'.
- 3. The third and final item in the list is a unique number
- representing the specific syntax region matched. This
- allows detection of the beginning of a new concealable
- region if there are two consecutive regions with the same
- replacement character. For an example use see
- $VIMRUNTIME/syntax/2html.vim .
+ 3. The third and final item in the list is a number
+ representing the specific syntax region matched in the
+ line. When the character is not concealed the value is
+ zero. This allows detection of the beginning of a new
+ concealable region if there are two consecutive regions
+ with the same replacement character. For an example, if
+ the text is "123456" and both "23" and "45" are concealed
+ and replace by the character "X", then:
+ call returns ~
+ synconcealed(lnum, 1) [0, '', 0]
+ synconcealed(lnum, 2) [1, 'X', 1]
+ synconcealed(lnum, 3) [1, 'X', 1]
+ synconcealed(lnum, 4) [1, 'X', 2]
+ synconcealed(lnum, 5) [1, 'X', 2]
+ synconcealed(lnum, 6) [0, '', 0]
synstack({lnum}, {col}) *synstack()*