Re: Fwd: navigating code blocks in Oracle PLSQL
- On Tue, Mar 02, 2004 at 08:10:02PM -0800, lolli lolli wrote:
> Thanks a lot Benji Fisher. I'm now able to use matchit.vim from ftplugin.This is a bug in ftplugin/sql.vim . Try replacing '\<if\>' with
> '%' works fine, but only for simple IF...ELSE...END IF, Loops etc. It
> is not working for nested IF conditions or Loops. Is this a known
'\%(\<end\s\+\)\@<!\<if\>' and it should work. If you have installed
the docs for matchit.vim, then this is explained under
I think the maintainer of ftplugin/sql.vim reads this list, but I
will cc him anyway. If there is already an updated version of the file
out there, I apologize.
HTH --Benji Fisher
P.S. Now that I look at it more closely, I see that the correct
patternis in there, but also the incorrect one is there. The two lines
\ '\%(\<end\s\+\)\@<!' . '\<if\>:\<end\s\+if\>,'.
\ '\%(\<end\s\+\)\@<!' . '\<if\>:'.
> I think the maintainer of ftplugin/sql.vim reads thisI have corrected the ftplugin and uploaded a new version:
> list, but I will cc him anyway. If there is already an
> updated version of the file out there, I apologize.
I had added support for macro definitions (see :h [d ), but realized I had
never uploaded that version.
So that is in there now as well.
Try using [d when on a variable in a stored procedure.
If you encounter issues, let me know and I will upate the file.
I don't normally use Oracle, so the syntax is slightly different.
Thanks for the change Benji, my simple testing showed they worked.