comparison src/testdir/test_vim9_script.vim @ 24958:21ec48d542a8 v8.2.3016

patch 8.2.3016: confusing error when expression is followed by comma Commit: https://github.com/vim/vim/commit/fae55a9cb0838e4c2e634e55a3468af4a75fbdf2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 17 22:08:30 2021 +0200 patch 8.2.3016: confusing error when expression is followed by comma Problem: Confusing error when expression is followed by comma. Solution: Give a different error for trailing text. (closes https://github.com/vim/vim/issues/8395)
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Jun 2021 22:15:03 +0200
parents 75bd12f3bfeb
children d81a5c3a3aa6
comparison
equal deleted inserted replaced
24957:674d99f8705f 24958:21ec48d542a8
3210 CheckScriptFailure([ 3210 CheckScriptFailure([
3211 'vim9script', 3211 'vim9script',
3212 'if 1# comment3', 3212 'if 1# comment3',
3213 ' echo "yes"', 3213 ' echo "yes"',
3214 'endif', 3214 'endif',
3215 ], 'E15:') 3215 ], 'E488:')
3216 3216
3217 CheckScriptFailure([ 3217 CheckScriptFailure([
3218 'vim9script', 3218 'vim9script',
3219 'if 0 # comment4', 3219 'if 0 # comment4',
3220 ' echo "yes"', 3220 ' echo "yes"',
3221 'elseif 2#comment', 3221 'elseif 2#comment',
3222 ' echo "no"', 3222 ' echo "no"',
3223 'endif', 3223 'endif',
3224 ], 'E15:') 3224 ], 'E488:')
3225 3225
3226 CheckScriptSuccess([ 3226 CheckScriptSuccess([
3227 'vim9script', 3227 'vim9script',
3228 'var v = 1 # comment5', 3228 'var v = 1 # comment5',
3229 ]) 3229 ])
3230 3230
3231 CheckScriptFailure([ 3231 CheckScriptFailure([
3232 'vim9script', 3232 'vim9script',
3233 'var v = 1# comment6', 3233 'var v = 1# comment6',
3234 ], 'E15:') 3234 ], 'E488:')
3235 3235
3236 CheckScriptSuccess([ 3236 CheckScriptSuccess([
3237 'vim9script', 3237 'vim9script',
3238 'new' 3238 'new'
3239 'setline(1, ["# define pat", "last"])', 3239 'setline(1, ["# define pat", "last"])',