Hi,
I'm playing with expression but can't get it right. The start and end
expression seems not to be unique.
I have the following:
let g:start_expr = '\v^\s*(def>|if.*then>|case.* is>)'
let g:end_expr = '\v((^\s*(end|\<end\s\+if.*;|\<end\s\+case.*;)))'
This goes ok for code that is not nested
for example
if some_condition then
[...]
end if;
case condition is
[...]
end case;
But when I nest the if statement then it doesn't work anymore. I assume
that's because of the if and the case in the g:end_expr.
How can I make the start combination "if.*then>" (without the "'s)
unique so that it can not be seen as a end combination as in
"\<end\s\+if.*;" (without the "'s) ?
And the same applies for start combination "case.* is>" (without the
"'s) and the end combination "\<end\s\+case.*;" (without the "'s) ?
Rgds,
Jeri
--
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