From 7c6ca6fed8bceed67315e046a33701d71ac4b436 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 28 Apr 2021 21:58:50 -0400 Subject: vim-patch:73fef33014db Update runtime files https://github.com/vim/vim/commit/73fef33014dbf21fc59e7e47fb091117868d82fb Omit usr_46.txt. --- runtime/ftplugin/vim.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'runtime/ftplugin') 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 -" 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 = - \ '\:\:\,' . - \ '\<\(wh\%[ile]\|for\)\>:\:\:\,' . + \ '\<\%(fu\%[nction]\|def\)\>:\:\<\%(endf\%[unction]\|enddef\)\>,' . + \ '\<\(wh\%[ile]\|for\)\>:\:\:\,' . \ '\:\:\,' . + \ '{:},' . \ '\:\:\:\,' . \ '\\)\@!\S:\,' " Ignore syntax region commands and settings, any 'en*' would clobber -- cgit