mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
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 #8395)
This commit is contained in:
@@ -3212,7 +3212,7 @@ def Test_vim9_comment_not_compiled()
|
||||
'if 1# comment3',
|
||||
' echo "yes"',
|
||||
'endif',
|
||||
], 'E15:')
|
||||
], 'E488:')
|
||||
|
||||
CheckScriptFailure([
|
||||
'vim9script',
|
||||
@@ -3221,7 +3221,7 @@ def Test_vim9_comment_not_compiled()
|
||||
'elseif 2#comment',
|
||||
' echo "no"',
|
||||
'endif',
|
||||
], 'E15:')
|
||||
], 'E488:')
|
||||
|
||||
CheckScriptSuccess([
|
||||
'vim9script',
|
||||
@@ -3231,7 +3231,7 @@ def Test_vim9_comment_not_compiled()
|
||||
CheckScriptFailure([
|
||||
'vim9script',
|
||||
'var v = 1# comment6',
|
||||
], 'E15:')
|
||||
], 'E488:')
|
||||
|
||||
CheckScriptSuccess([
|
||||
'vim9script',
|
||||
|
Reference in New Issue
Block a user