Tuesday, February 28, 2012

Re: Is is vim's bug of syntax and fold?

Cocular wrote:
> Thanks.
>
> In my understanding, the larger region will ALWAYS cover small region,
> UNLESS you specify transparent to the larger region or you specify the
> contains=small to the larger region.
>
> Also, the contained region will eat the end spot so that the parent
> region can not end correct if they share the same end point. keepend
> can force its childs do keep the end and extend can force to eat the
> end spot even its parent has keepend.
>
> Am I right?
>
Not exactly.

Vim doesn't "know" whether one region will be larger than another; its a
question of priority (later definitions have priority) and which region
starts first.

Regards,
Chip Campbell

--
You received this message from the "vim_use" 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

No comments: