Mercurial > vim
diff src/testdir/test_vim9_script.vim @ 20055:686deb5959c2 v8.2.0583
patch 8.2.0583: Vim9: # comment not recognized in :def function
Commit: https://github.com/vim/vim/commit/cb711abf0f71d8c743cf73c76077f52e17732a8c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 16 13:00:29 2020 +0200
patch 8.2.0583: Vim9: # comment not recognized in :def function
Problem: Vim9: # comment not recognized in :def function.
Solution: Recognize and skip # comment.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Apr 2020 13:15:05 +0200 |
parents | 8fb1cf4c44d5 |
children | de756b3f4dee |
line wrap: on
line diff
--- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -63,9 +63,9 @@ def Test_assignment() let Funky2: func = function('len') let Party2: func = funcref('Test_syntax') - " type becomes list<any> + # type becomes list<any> let somelist = rand() > 0 ? [1, 2, 3] : ['a', 'b', 'c'] - " type becomes dict<any> + # type becomes dict<any> let somedict = rand() > 0 ? #{a: 1, b: 2} : #{a: 'a', b: 'b'} g:newvar = 'new' @@ -104,7 +104,7 @@ def Test_assignment() call CheckDefFailure(['¬ex += 3'], 'E113:') call CheckDefFailure(['&ts ..= "xxx"'], 'E1019:') call CheckDefFailure(['&path += 3'], 'E1013:') - " test freeing ISN_STOREOPT + # test freeing ISN_STOREOPT call CheckDefFailure(['&ts = 3', 'let asdf'], 'E1022:') &ts = 8 @@ -131,7 +131,7 @@ enddef def Test_assignment_default() - " Test default values. + # Test default values. let thebool: bool assert_equal(v:false, thebool)