diff options
author | Florian Walch <florian@fwalch.com> | 2015-01-04 20:26:51 +0100 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2015-01-04 20:28:08 +0100 |
commit | 2624d66045ab6e5cd1c38165316e9c304f38fa18 (patch) | |
tree | 5ad6662f601c74d49f826f208a3f640819aea9eb /runtime/ftplugin/vim.vim | |
parent | b332aebe252c812ec4068892db4fad71b8075185 (diff) | |
download | rneovim-2624d66045ab6e5cd1c38165316e9c304f38fa18.tar.gz rneovim-2624d66045ab6e5cd1c38165316e9c304f38fa18.tar.bz2 rneovim-2624d66045ab6e5cd1c38165316e9c304f38fa18.zip |
vim-patch:37c2403
Update runtime files.
https://code.google.com/p/vim/source/detail?r=37c24033b2601a4a0953970a0ec85d5537101915
Diffstat (limited to 'runtime/ftplugin/vim.vim')
-rw-r--r-- | runtime/ftplugin/vim.vim | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim index edba37b896..f355d2837d 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: 2013 Jun 26 +" Last Change: 2014 Sep 07 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -62,9 +62,12 @@ if exists("loaded_matchit") \ '\<try\>:\<cat\%[ch]\>:\<fina\%[lly]\>:\<endt\%[ry]\>,' . \ '\<aug\%[roup]\s\+\%(END\>\)\@!\S:\<aug\%[roup]\s\+END\>,' . \ '(:)' - " Ignore ":syntax region" commands, the 'end' argument clobbers if-endif - let b:match_skip = 'getline(".") =~ "^\\s*sy\\%[ntax]\\s\\+region" || - \ synIDattr(synID(line("."),col("."),1),"name") =~? "comment\\|string"' + " Ignore syntax region commands and settings, any 'en*' would clobber + " if-endif. + " - set spl=de,en + " - au! FileType javascript syntax region foldBraces start=/{/ end=/}/ … + let b:match_skip = 'synIDattr(synID(line("."),col("."),1),"name") + \ =~? "comment\\|string\\|vimSynReg\\|vimSet"' endif let &cpo = s:cpo_save |