Mercurial > vim
changeset 27265:8a097fc07aa4 v8.2.4161
patch 8.2.4161: Vim9: warning for missing white space after imported variable
Commit: https://github.com/vim/vim/commit/21f0d6cbca9c93e2319d45a33ba26b10a85ff4dc
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 20 17:35:49 2022 +0000
patch 8.2.4161: Vim9: warning for missing white space after imported variable
Problem: Vim9: warning for missing white space after imported variable.
Solution: Do not skip white space. (closes https://github.com/vim/vim/issues/9567)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 20 Jan 2022 18:45:04 +0100 |
parents | b2eff72f957e |
children | 06a2610c1661 |
files | src/testdir/test_vim9_import.vim src/version.c src/vim9expr.c |
diffstat | 3 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_vim9_import.vim +++ b/src/testdir/test_vim9_import.vim @@ -67,6 +67,11 @@ def Test_vim9_import_export() enddef g:funcref_result = GetExported() + def GetName(): string + return expo.exp_name .. 'son' + enddef + g:long_name = GetName() + g:imported_name = expo.exp_name expo.exp_name ..= ' Doe' expo.exp_name = expo.exp_name .. ' Maar' @@ -98,6 +103,7 @@ def Test_vim9_import_export() assert_equal('Exported', g:imported_func) assert_equal('Exported', g:funcref_result) assert_equal('John', g:imported_name) + assert_equal('Johnson', g:long_name) assert_equal('John Doe Maar', g:imported_name_appended) assert_false(exists('g:name')) @@ -109,7 +115,7 @@ def Test_vim9_import_export() unlet g:exported_i2 unlet g:exported_later unlet g:imported_func - unlet g:imported_name g:imported_name_appended + unlet g:imported_name g:long_name g:imported_name_appended delete('Ximport.vim') # similar, with line breaks