From df4ffce543ba0d4e2464b3978f4e66eaddf6a29a Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 4 Jun 2022 10:53:42 +0200 Subject: vim-patch:partial:cfa8f9a3f285 (#18858) Update runtime files https://github.com/vim/vim/commit/cfa8f9a3f285060152ebbdbf86fbc7aecf1dd756 skip syntax/vim.vim (needs 8.2.4770) skip doc/syntax.vim (needs several colorscheme patches) skip further rewrite of manual --- runtime/ftplugin/confini.vim | 10 ++++++++++ runtime/ftplugin/fortran.vim | 8 +++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 runtime/ftplugin/confini.vim (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/confini.vim b/runtime/ftplugin/confini.vim new file mode 100644 index 0000000000..310e046353 --- /dev/null +++ b/runtime/ftplugin/confini.vim @@ -0,0 +1,10 @@ +" Vim filetype plugin file +" Language: confini + +" Quit if a ftplugin file was already loaded +if exists("b:did_ftplugin") + finish +endif + +" Use the cfg plugin, it's similar enough. +runtime! ftplugin/cfg.vim diff --git a/runtime/ftplugin/fortran.vim b/runtime/ftplugin/fortran.vim index 26dc90a184..8f5b243b82 100644 --- a/runtime/ftplugin/fortran.vim +++ b/runtime/ftplugin/fortran.vim @@ -1,6 +1,6 @@ " Vim settings file " Language: Fortran 2008 (and older: Fortran 2003, 95, 90, 77, 66) -" Version: (v53) 2021 April 06 +" Version: (v53) 2021 April 06 (updated 2022 May 22) " Maintainer: Ajit J. Thakkar ; " Usage: For instructions, do :help fortran-plugin from Vim " Credits: @@ -105,12 +105,13 @@ if !exists("b:match_words") let s:notselect = '\%(\:' . s:notselect. '\:\,' . \ s:notelse . '\:' . - \ '\:\,'. + \ s:nothash . '\:' . s:nothash . '\,'. \ 'do\s\+\(\d\+\):\%(^\s*\)\@<=\1\s,'. \ s:notend . '\:\,'. \ s:notelse . '\:\:\,'. @@ -122,7 +123,8 @@ if !exists("b:match_words") \ s:notend . '\:\,'. \ s:notend . '\:\,'. \ s:notend . '\' . s:notprocedure . ':\,'. - \ s:notend . '\:\' + \ s:notend . '\:\,'. + \ '\%(^\s*\)\@<=#\s*if\%(def\|ndef\)\=\>:\%(^\s*\)\@<=#\s*\%(elif\|else\)\>:\%(^\s*\)\@<=#\s*endif\>' endif " File filters for :browse e -- cgit