aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-28 21:58:50 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-28 22:14:37 -0400
commit7c6ca6fed8bceed67315e046a33701d71ac4b436 (patch)
treef489cf6843f0f125e89d3f91cee2777156f0ef84 /runtime/ftplugin
parentdf2acdc3be807393ea8d61bb94c41d792388c0de (diff)
downloadrneovim-7c6ca6fed8bceed67315e046a33701d71ac4b436.tar.gz
rneovim-7c6ca6fed8bceed67315e046a33701d71ac4b436.tar.bz2
rneovim-7c6ca6fed8bceed67315e046a33701d71ac4b436.zip
vim-patch:73fef33014db
Update runtime files https://github.com/vim/vim/commit/73fef33014dbf21fc59e7e47fb091117868d82fb Omit usr_46.txt.
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/vim.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim
index c0d0fc00cd..465b2f95c5 100644
--- a/runtime/ftplugin/vim.vim
+++ b/runtime/ftplugin/vim.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin
" Language: Vim
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2018 Aug 07
+" Last Change: 2020 Jun 16
" Only do this when not done yet for this buffer
if exists("b:did_ftplugin")
@@ -86,9 +86,10 @@ endif
if exists("loaded_matchit")
let b:match_ignorecase = 0
let b:match_words =
- \ '\<fu\%[nction]\>:\<retu\%[rn]\>:\<endf\%[unction]\>,' .
- \ '\<\(wh\%[ile]\|for\)\>:\<brea\%[k]\>:\<con\%[tinue]\>:\<end\(w\%[hile]\|fo\%[r]\)\>,' .
+ \ '\<\%(fu\%[nction]\|def\)\>:\<retu\%[rn]\>:\<\%(endf\%[unction]\|enddef\)\>,' .
+ \ '\<\(wh\%[ile]\|for\)\>:\<brea\%[k]\>:\<con\%[tinue]\>:\<end\(w\%[hile]\|fo\%[r]\)\>,' .
\ '\<if\>:\<el\%[seif]\>:\<en\%[dif]\>,' .
+ \ '{:},' .
\ '\<try\>:\<cat\%[ch]\>:\<fina\%[lly]\>:\<endt\%[ry]\>,' .
\ '\<aug\%[roup]\s\+\%(END\>\)\@!\S:\<aug\%[roup]\s\+END\>,'
" Ignore syntax region commands and settings, any 'en*' would clobber