mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2480: Vim9: some errors for white space do not show context
Problem: Vim9: some errors for white space do not show context. Solution: Include the text at the error.
This commit is contained in:
@@ -788,7 +788,8 @@ parse_type(char_u **arg, garray_T *type_gap, int give_error)
|
||||
if (!VIM_ISWHITE(*p))
|
||||
{
|
||||
if (give_error)
|
||||
semsg(_(e_white_space_required_after_str), ",");
|
||||
semsg(_(e_white_space_required_after_str_str),
|
||||
",", p - 1);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
@@ -815,7 +816,8 @@ parse_type(char_u **arg, garray_T *type_gap, int give_error)
|
||||
// parse return type
|
||||
++*arg;
|
||||
if (!VIM_ISWHITE(**arg) && give_error)
|
||||
semsg(_(e_white_space_required_after_str), ":");
|
||||
semsg(_(e_white_space_required_after_str_str),
|
||||
":", *arg - 1);
|
||||
*arg = skipwhite(*arg);
|
||||
ret_type = parse_type(arg, type_gap, give_error);
|
||||
if (ret_type == NULL)
|
||||
|
Reference in New Issue
Block a user