Hi Jeri!

On Do, 12 Aug 2010, Jeri Raye wrote:

> Unfortantly the adding of \ contains=vhdlFold doesn't do the trick.
> I have now the following:
> 
> syntax match vhdlEndIf "end\s\+if"
> syn region vhdlFold
>       \ start="\z(if\)"
>       \ end="end\s\+\z1"
>       \ contains=vhdlFold
>       \ fold transparent
>       \ keepend
> 
> The following text
> ######### Start of text #########
>  if
>    if
> 
>   end  if
> end if
> ######### End of Text #########
> 
> folds into:
> ######### Start of text #########
> +-- 4 lines: if-----------------
> end if
> ######### End of Text #########
> Notice the not included 'end if'

That is because of the keepend. There was a reason why I left it out, in 
my previous message ;)

regards,
Christian

-- 
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

Reply via email to