comparison src/testdir/test_vim9_script.vim @ 29782:35cbea786334 v9.0.0230

patch 9.0.0230: no error for comma missing in list in :def function Commit: https://github.com/vim/vim/commit/2984ed31d92f7da19b3dc86b37764c55669dd7c2 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 20 14:51:17 2022 +0100 patch 9.0.0230: no error for comma missing in list in :def function Problem: No error for comma missing in list in :def function. Solution: Check for missing comma. (closes https://github.com/vim/vim/issues/10943)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Aug 2022 16:00:04 +0200
parents c71a42be2d7f
children d891115c0aea
comparison
equal deleted inserted replaced
29781:bcb7e4222d17 29782:35cbea786334
3272 'var v = 1# comment6', 3272 'var v = 1# comment6',
3273 ], 'E488:') 3273 ], 'E488:')
3274 3274
3275 v9.CheckScriptSuccess([ 3275 v9.CheckScriptSuccess([
3276 'vim9script', 3276 'vim9script',
3277 'new' 3277 'new',
3278 'setline(1, ["# define pat", "last"])', 3278 'setline(1, ["# define pat", "last"])',
3279 ':$', 3279 ':$',
3280 'dsearch /pat/ #comment', 3280 'dsearch /pat/ #comment',
3281 'bwipe!', 3281 'bwipe!',
3282 ]) 3282 ])
3283 3283
3284 v9.CheckScriptFailure([ 3284 v9.CheckScriptFailure([
3285 'vim9script', 3285 'vim9script',
3286 'new' 3286 'new',
3287 'setline(1, ["# define pat", "last"])', 3287 'setline(1, ["# define pat", "last"])',
3288 ':$', 3288 ':$',
3289 'dsearch /pat/#comment', 3289 'dsearch /pat/#comment',
3290 'bwipe!', 3290 'bwipe!',
3291 ], 'E488:') 3291 ], 'E488:')