0
0
mirror of https://github.com/vim/vim.git synced 2025-11-14 23:04:02 -05:00

patch 9.1.1617: Vim9: some error messages can be improved

Problem:  Vim9: some error messages can be improved
Solution: Improve error messages when parsing generic function type
          arguments (Yegappan Lakshmanan).

closes: #17957

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2025-08-10 09:15:03 +02:00
committed by Christian Brabandt
parent 57eb1d496b
commit 1434ea03b1
4 changed files with 42 additions and 17 deletions

View File

@@ -3715,9 +3715,9 @@ find_ex_command(
// "&option" can be followed by "->" or "=", check below
}
if (*p == '<' && vim9)
if (vim9 && *p == '<')
{
// generic function
// generic function type args
if (skip_generic_func_type_args(&p) == FAIL)
{
eap->cmdidx = CMD_SIZE;