diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-09-16 17:52:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-16 17:52:08 +0200 |
commit | e512d3ecf2b6e0104d2df0d863c8d51a2d7e5ab1 (patch) | |
tree | 248402c44d79c9532a859e772d279c44485916c6 | |
parent | 6b2f0f43b5f9d375d2be1b4eb4784716dd89ec8f (diff) | |
download | rneovim-e512d3ecf2b6e0104d2df0d863c8d51a2d7e5ab1.tar.gz rneovim-e512d3ecf2b6e0104d2df0d863c8d51a2d7e5ab1.tar.bz2 rneovim-e512d3ecf2b6e0104d2df0d863c8d51a2d7e5ab1.zip |
vim-patch:9.0.0479: in :def function all closures in loop get the sam… (#20220)
vim-patch:9.0.0479: in :def function all closures in loop get the same variables
Problem: In a :def function all closures in a loop get the same variables.
Solution: Use a separate list of variables for LOADOUTER and SAVEOUTER.
https://github.com/vim/vim/commit/1aea184a0dc558a222cc5bcbaad9ab0fd700c7b9
(note: patch description is wrong)
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index eda2cd555a..52dc8e75ab 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2112,6 +2112,9 @@ au BufNewFile,BufRead */.config/upstart/*.override setf upstart " Vala au BufNewFile,BufRead *.vala setf vala +" VDF +au BufNewFile,BufRead *.vdf setf vdf + " VDM au BufRead,BufNewFile *.vdmpp,*.vpp setf vdmpp au BufRead,BufNewFile *.vdmrt setf vdmrt diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 39985c948e..8fb8e98f7d 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1021,6 +1021,7 @@ local extension = { dsm = 'vb', ctl = 'vb', vbs = 'vb', + vdf = 'vdf', vdmpp = 'vdmpp', vpp = 'vdmpp', vdmrt = 'vdmrt', diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index cf40f6211b..4657101a41 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -594,6 +594,7 @@ let s:filename_checks = { \ 'usw2kagtlog': ['usw2kagt.log', 'USW2KAGT.LOG', 'usw2kagt.file.log', 'USW2KAGT.FILE.LOG', 'file.usw2kagt.log', 'FILE.USW2KAGT.LOG'], \ 'vala': ['file.vala'], \ 'vb': ['file.sba', 'file.vb', 'file.vbs', 'file.dsm', 'file.ctl'], + \ 'vdf': ['file.vdf'], \ 'vdmpp': ['file.vpp', 'file.vdmpp'], \ 'vdmrt': ['file.vdmrt'], \ 'vdmsl': ['file.vdm', 'file.vdmsl'], |