summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/evalvars.c7
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/evalvars.c b/src/evalvars.c
index d98d9e4708..200fb8f12c 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -1061,7 +1061,8 @@ skip_var_list(
char_u *
skip_var_one(char_u *arg, int include_type)
{
- char_u *end;
+ char_u *end;
+ int vim9 = in_vim9script();
if (*arg == '@' && arg[1] != NUL)
return arg + 2;
@@ -1070,10 +1071,10 @@ skip_var_one(char_u *arg, int include_type)
// "a: type" is declaring variable "a" with a type, not "a:".
// Same for "s: type".
- if (end == arg + 2 && end[-1] == ':')
+ if (vim9 && end == arg + 2 && end[-1] == ':')
--end;
- if (include_type && in_vim9script())
+ if (include_type && vim9)
{
if (*end == ':')
end = skip_type(skipwhite(end + 1), FALSE);
diff --git a/src/version.c b/src/version.c
index 289854e89e..3a88080e0d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2372,
+/**/
2371,
/**/
2370,