summaryrefslogtreecommitdiff
path: root/runtime/ftplugin/aspvbs.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-06-30 16:16:41 +0000
committerBram Moolenaar <Bram@vim.org>2004-06-30 16:16:41 +0000
commit843ee41eb8258ac50ed81976757d8b228382a880 (patch)
treed0fcdff9e19b05b182de1bb1be46b2e6f5b8b0b7 /runtime/ftplugin/aspvbs.vim
parentf4b8e57ffd048f9ca46dd7618939ba7a1b2294ec (diff)
downloadvim-git-843ee41eb8258ac50ed81976757d8b228382a880.tar.gz
updated for version 7.0003
Diffstat (limited to 'runtime/ftplugin/aspvbs.vim')
-rw-r--r--runtime/ftplugin/aspvbs.vim21
1 files changed, 11 insertions, 10 deletions
diff --git a/runtime/ftplugin/aspvbs.vim b/runtime/ftplugin/aspvbs.vim
index 006e3ce20..e3bc70980 100644
--- a/runtime/ftplugin/aspvbs.vim
+++ b/runtime/ftplugin/aspvbs.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin file
" Language: aspvbs
" Maintainer: Dan Sharp <dwsharp at hotmail dot com>
-" Last Changed: 2003 Sep 29
+" Last Changed: 2004 Jun 28
" URL: http://mywebpage.netscape.com/sharppeople/vim/ftplugin
if exists("b:did_ftplugin") | finish | endif
@@ -35,15 +35,16 @@ endif
" thanks to Gontran BAERTS
if exists("loaded_matchit")
let s:notend = '\%(\<end\s\+\)\@<!'
+ let b:match_ignorecase = 1
let b:match_words =
- \ s:notend . '\<If\>:^\s\+\<Else\>:\<ElseIf\>:\<end\s\+\<if\>,' .
- \ s:notend . '\<Select\s\+\<Case\>:\<Case\>:\<Case\s\+\<Else\>:\<End\s\+\<Select\>,' .
- \ '^\s*\<Sub\>:\<End\s\+\<Sub\>,' .
- \ '^\s*\<Function\>:\<End\s\+\<Function\>,' .
- \ '\<Class\>:\<End\s\+\<Class\>,' .
- \ '^\s*\<Do\>:\<Loop\>,' .
- \ '^\s*\<For\>:\<Next\>,' .
- \ '\<While\>:\<Wend\>,' .
+ \ s:notend . '\<if\>\%(.\{-}then\s\+\w\)\@!:\<elseif\>:^\s*\<else\>:\<end\s\+\<if\>,' .
+ \ s:notend . '\<select\s\+case\>:\<case\>:\<case\s\+else\>:\<end\s\+select\>,' .
+ \ '^\s*\<sub\>:\<end\s\+sub\>,' .
+ \ '^\s*\<function\>:\<end\s\+function\>,' .
+ \ '\<class\>:\<end\s\+class\>,' .
+ \ '^\s*\<do\>:\<loop\>,' .
+ \ '^\s*\<for\>:\<next\>,' .
+ \ '\<while\>:\<wend\>,' .
\ s:match_words
endif
@@ -52,7 +53,7 @@ if has("gui_win32")
let b:browsefilter="ASP Files (*.asp)\t*.asp\n" . s:browsefilter
endif
-let b:undo_ftplugin = "unlet! b:match_words b:browsefilter | " . s:undo_ftplugin
+let b:undo_ftplugin = "unlet! b:match_words b:match_ignorecase b:browsefilter | " . s:undo_ftplugin
" Restore the saved compatibility options.
let &cpo = s:save_cpo