comparison src/ex_docmd.c @ 24531:3bfec39ce31c v8.2.2805

patch 8.2.2805: Vim9: cannot use legacy syntax in Vim9 script Commit: https://github.com/vim/vim/commit/96cf4ba8fb96e5778192d2dab7458b9a7da0a49d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 24 14:15:41 2021 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Apr 2021 14:30:04 +0200
parents 7c4f50c02e18
children 9c404d78d767
comparison
equal deleted inserted replaced
24530:51e01f7c2069 24531:3bfec39ce31c
2923 case 'l': if (checkforcmd_noparen(&eap->cmd, "lockmarks", 3)) 2923 case 'l': if (checkforcmd_noparen(&eap->cmd, "lockmarks", 3))
2924 { 2924 {
2925 cmod->cmod_flags |= CMOD_LOCKMARKS; 2925 cmod->cmod_flags |= CMOD_LOCKMARKS;
2926 continue; 2926 continue;
2927 } 2927 }
2928 if (checkforcmd_noparen(&eap->cmd, "legacy", 3))
2929 {
2930 if (ends_excmd2(p, eap->cmd))
2931 {
2932 *errormsg =
2933 _(e_vim9cmd_must_be_followed_by_command);
2934 return FAIL;
2935 }
2936 cmod->cmod_flags |= CMOD_LEGACY;
2937 continue;
2938 }
2928 2939
2929 if (!checkforcmd_noparen(&eap->cmd, "leftabove", 5)) 2940 if (!checkforcmd_noparen(&eap->cmd, "leftabove", 5))
2930 break; 2941 break;
2931 cmod->cmod_split |= WSP_ABOVE; 2942 cmod->cmod_split |= WSP_ABOVE;
2932 continue; 2943 continue;