mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14: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:
@@ -5570,7 +5570,7 @@ func Test_expr_eval_error_msg()
|
||||
call T(19, '{(1} + CONT(19)', 'E110', "Missing ')'")
|
||||
call T(20, '("abc"[1) + CONT(20)', 'E111', "Missing ']'")
|
||||
call T(21, '(1 +) + CONT(21)', 'E15', "Invalid expression")
|
||||
call T(22, '1 2 + CONT(22)', 'E15', "Invalid expression")
|
||||
call T(22, '1 2 + CONT(22)', 'E488', "Trailing characters: 2 +")
|
||||
call T(23, '(1 ? 2) + CONT(23)', 'E109', "Missing ':' after '?'")
|
||||
call T(24, '("abc) + CONT(24)', 'E114', "Missing quote")
|
||||
call T(25, "('abc) + CONT(25)", 'E115', "Missing quote")
|
||||
|
Reference in New Issue
Block a user