summaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-04-01 18:03:16 +0200
committerBram Moolenaar <Bram@vim.org>2011-04-01 18:03:16 +0200
commitadc2182c40228d3eaef90779fd18d65715e29203 (patch)
treeed1aabd346892e932361901dbeb7e5309d6df04e /runtime/ftplugin
parent337ae06ff9fe42c871564947aa32e4fe6b08fba9 (diff)
downloadvim-git-adc2182c40228d3eaef90779fd18d65715e29203.tar.gz
Updated runtime files.
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/sql.vim20
1 files changed, 11 insertions, 9 deletions
diff --git a/runtime/ftplugin/sql.vim b/runtime/ftplugin/sql.vim
index cbc8dcc9a..7c6864a0c 100644
--- a/runtime/ftplugin/sql.vim
+++ b/runtime/ftplugin/sql.vim
@@ -1,8 +1,8 @@
" SQL filetype plugin file
" Language: SQL (Common for Oracle, Microsoft SQL Server, Sybase)
-" Version: 7.0
-" Maintainer: David Fishburn <fishburn at ianywhere dot com>
-" Last Change: 2010 Jun 11
+" Version: 8.0
+" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
+" Last Change: 2011 Apr 01
" Download: http://vim.sourceforge.net/script.php?script_id=454
" For more details please use:
@@ -36,6 +36,10 @@
"
" History
"
+" Version 8.0
+"
+" NF: Improved the matchit plugin regex (Talek)
+"
" Version 7.0
"
" NF: Calls the sqlcomplete#ResetCacheSyntax() function when calling
@@ -290,6 +294,7 @@ if !exists("b:match_words")
" WHEN OTHERS THEN
"
" create[ or replace] procedure|function|event
+ " \ '^\s*\<\%(do\|for\|while\|loop\)\>.*:'.
let b:match_words =
\ '\<begin\>:\<end\>\W*$,'.
@@ -298,12 +303,9 @@ if !exists("b:match_words")
\ '\<elsif\>\|\<elseif\>\|\<else\>:'.
\ '\<end\s\+if\>,'.
\
- \ '\<do\>\|'.
- \ '\<while\>\|'.
- \ '\%(' . s:notend . '\<loop\>\)\|'.
- \ '\%(' . s:notend . '\<for\>\):'.
- \ '\<exit\>\|\<leave\>\|\<break\>\|\<continue\>:'.
- \ '\%(\<end\s\+\%(for\|loop\>\)\)\|\<doend\>,'.
+ \ '\(^\s*\)\@<=\(\<\%(do\|for\|while\|loop\)\>.*\):'.
+ \ '\%(\<exit\>\|\<leave\>\|\<break\>\|\<continue\>\):'.
+ \ '\%(\<doend\>\|\%(\<end\s\+\%(for\|while\|loop\>\)\)\),'.
\
\ '\%('. s:notend . '\<case\>\):'.
\ '\%('.s:when_no_matched_or_others.'\):'.