Mercurial > vim
comparison src/testdir/test_vimscript.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 | f1a390885192 |
children | b0f82974ddf4 |
comparison
equal
deleted
inserted
replaced
24957:674d99f8705f | 24958:21ec48d542a8 |
---|---|
5568 call T(17, 'F(1, 2) + CONT(17)', 'E118', "Too many arguments") | 5568 call T(17, 'F(1, 2) + CONT(17)', 'E118', "Too many arguments") |
5569 call T(18, 'F() + CONT(18)', 'E119', "Not enough arguments") | 5569 call T(18, 'F() + CONT(18)', 'E119', "Not enough arguments") |
5570 call T(19, '{(1} + CONT(19)', 'E110', "Missing ')'") | 5570 call T(19, '{(1} + CONT(19)', 'E110', "Missing ')'") |
5571 call T(20, '("abc"[1) + CONT(20)', 'E111', "Missing ']'") | 5571 call T(20, '("abc"[1) + CONT(20)', 'E111', "Missing ']'") |
5572 call T(21, '(1 +) + CONT(21)', 'E15', "Invalid expression") | 5572 call T(21, '(1 +) + CONT(21)', 'E15', "Invalid expression") |
5573 call T(22, '1 2 + CONT(22)', 'E15', "Invalid expression") | 5573 call T(22, '1 2 + CONT(22)', 'E488', "Trailing characters: 2 +") |
5574 call T(23, '(1 ? 2) + CONT(23)', 'E109', "Missing ':' after '?'") | 5574 call T(23, '(1 ? 2) + CONT(23)', 'E109', "Missing ':' after '?'") |
5575 call T(24, '("abc) + CONT(24)', 'E114', "Missing quote") | 5575 call T(24, '("abc) + CONT(24)', 'E114', "Missing quote") |
5576 call T(25, "('abc) + CONT(25)", 'E115', "Missing quote") | 5576 call T(25, "('abc) + CONT(25)", 'E115', "Missing quote") |
5577 call T(26, '& + CONT(26)', 'E112', "Option name missing") | 5577 call T(26, '& + CONT(26)', 'E112', "Option name missing") |
5578 call T(27, '&asdf + CONT(27)', 'E113', "Unknown option") | 5578 call T(27, '&asdf + CONT(27)', 'E113', "Unknown option") |