aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-01-31 18:09:51 +0100
committerGitHub <noreply@github.com>2022-01-31 18:09:51 +0100
commitbddce4b0ff0eb7ac1f652eea6fce81b3e2cc5044 (patch)
tree22ca9a4d8b86b84d4a1a273d2b251f10057b347d /runtime/autoload
parent79b92da0d289d1adcd0bb27c7ee5786be460c166 (diff)
downloadrneovim-bddce4b0ff0eb7ac1f652eea6fce81b3e2cc5044.tar.gz
rneovim-bddce4b0ff0eb7ac1f652eea6fce81b3e2cc5044.tar.bz2
rneovim-bddce4b0ff0eb7ac1f652eea6fce81b3e2cc5044.zip
vim-patch:c4573eb12dba (#17258)
Update runtime files https://github.com/vim/vim/commit/c4573eb12dba6a062af28ee0b8938d1521934ce4
Diffstat (limited to 'runtime/autoload')
-rw-r--r--runtime/autoload/dist/ft.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index f6ef9be891..f513a2ac8f 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -1,7 +1,7 @@
" Vim functions for file type detection
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2022 Jan 28
+" Last Change: 2022 Jan 31
" These functions are moved here from runtime/filetype.vim to make startup
" faster.
@@ -67,7 +67,7 @@ func dist#ft#FTasmsyntax()
endif
endfunc
-func dist#ft#FTbas()
+func dist#ft#FTbas(alt = '')
if exists("g:filetype_bas")
exe "setf " . g:filetype_bas
return
@@ -88,6 +88,8 @@ func dist#ft#FTbas()
setf qb64
elseif match(lines, '\cVB_Name\|Begin VB\.\(Form\|MDIForm\|UserControl\)') > -1
setf vb
+ elseif a:alt != ''
+ exe 'setf ' .. a:alt
else
setf basic
endif