diff options
Diffstat (limited to 'runtime/indent.vim')
-rw-r--r-- | runtime/indent.vim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/indent.vim b/runtime/indent.vim index 2b64dd44b9..3f38ff28b6 100644 --- a/runtime/indent.vim +++ b/runtime/indent.vim @@ -1,7 +1,8 @@ " Vim support file to switch on loading indent files for file types " -" Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2008 Feb 22 +" Maintainer: The Vim Project <https://github.com/vim/vim> +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar <Bram@vim.org> if exists("did_indent_on") finish @@ -24,8 +25,8 @@ augroup filetypeindent " When there is a dot it is used to separate filetype names. Thus for " "aaa.bbb" load "indent/aaa.vim" and then "indent/bbb.vim". for name in split(s, '\.') - exe 'runtime! indent/' . name . '.vim' - exe 'runtime! indent/' . name . '.lua' + " XXX: "[.]" in the pattern makes it a wildcard on Windows + exe $'runtime! indent/{name}[.]{{vim,lua}}' endfor endif endfunc |