aboutsummaryrefslogtreecommitdiff
path: root/runtime/indent.vim
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2023-11-29 22:40:31 +0000
committerJosh Rahm <joshuarahm@gmail.com>2023-11-29 22:40:31 +0000
commit339e2d15cc26fe86988ea06468d912a46c8d6f29 (patch)
treea6167fc8fcfc6ae2dc102f57b2473858eac34063 /runtime/indent.vim
parent067dc73729267c0262438a6fdd66e586f8496946 (diff)
parent4a8bf24ac690004aedf5540fa440e788459e5e34 (diff)
downloadrneovim-339e2d15cc26fe86988ea06468d912a46c8d6f29.tar.gz
rneovim-339e2d15cc26fe86988ea06468d912a46c8d6f29.tar.bz2
rneovim-339e2d15cc26fe86988ea06468d912a46c8d6f29.zip
Merge remote-tracking branch 'upstream/master' into fix_repeatcmdline
Diffstat (limited to 'runtime/indent.vim')
-rw-r--r--runtime/indent.vim9
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