mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2805: Vim9: cannot use legacy syntax in Vim9 script
Problem: Vim9: cannot use legacy syntax in Vim9 script. Solution: Add the :legacy command.
This commit is contained in:
@@ -2925,6 +2925,17 @@ parse_command_modifiers(
|
||||
cmod->cmod_flags |= CMOD_LOCKMARKS;
|
||||
continue;
|
||||
}
|
||||
if (checkforcmd_noparen(&eap->cmd, "legacy", 3))
|
||||
{
|
||||
if (ends_excmd2(p, eap->cmd))
|
||||
{
|
||||
*errormsg =
|
||||
_(e_vim9cmd_must_be_followed_by_command);
|
||||
return FAIL;
|
||||
}
|
||||
cmod->cmod_flags |= CMOD_LEGACY;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!checkforcmd_noparen(&eap->cmd, "leftabove", 5))
|
||||
break;
|
||||
|
Reference in New Issue
Block a user