On 11/08/10 19:36, Christian Brabandt wrote:
Hi Jeri!
On Mi, 11 Aug 2010, Jeri Raye wrote:
######### Start of text #########
if
if
end if
end if
if
end if
######### End of Text #########
folds into
######### Start of text #########
+-- 3 lines: if
+-- 6 lines: if
end if
######### End of Text #########
Notice the last end if that isnot taken into the fold.
Any idea how to fix that?
I think this matches too much because this would start a new vhdlFold
Region even in lines with that contain end if.
Try something like this:
:syn region vhdlFold start='^\z(if\)' end='^end\s\+\z1' fold transparent
which limits the start and end region to match only at line start.
regards,
Christian
or else (untested)
syn region vhdlFold
\ start='\z(\<if\>\)'
\ end='\<end\s\+\z1'
\ contains=vhdlFold
\ fold transparent
to make it recursive?
Best regards,
Tony.
--
Lawmakers made it obligatory for everybody to take at least one bath
each week -- on Saturday night.
[real standing law in Vermont, United States of America]
--
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