On Jul 10, 1:18 pm, "Benjamin R. Haskell" <[email protected]> wrote: > Multiple conceal matches/regions get collapsed into a single character. > I'm not sure if this is intended, but it is certainly confusing.
I think it is intended, for use cases like multiple invisible markers to provide syntax highlighting to otherwise plain text (e.g. TxtFormat, AnsiiEsc). However, I think we should allow other use cases such as Greek characters in Tex, which could be VERY useful and probably not that much harder to implement. > > Personally, I think the behavior should be to collapse grouped on > cchar/null. Using an example that has some corner cases: > > e.g. > syntax match a /a/ conceal > syntax match a /b/ cchar= conceal > syntax match a /c/ conceal cchar=C > syntax match a /d/ conceal > > Then: > "abcd" > collapses to: > " C " > I think this would still cause problems, for example if you need to type two of the same Greek letter in a row in Tex, or two entities in a row in html or xml. I would instead propose something like: syntax concealcollapse on/off and maybe a "concealcollapse" syntax keyword for individual rules. Setting concealcollapse on or adding concealcollapse to a syntax rule would mean that the concealed text for groups defined with concealcollapse will collapse into any preceding adjacent concealed region. I was thinking the default should be to do the collapsing, since conceal is really about hiding stuff, not replacing it. So, maybe a better name would be in order to allow this. -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
