Mercurial > vim
comparison src/vim9compile.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 | 056f954c6fd2 |
children | 9c404d78d767 |
comparison
equal
deleted
inserted
replaced
24530:51e01f7c2069 | 24531:3bfec39ce31c |
---|---|
9049 { | 9049 { |
9050 if (cctx.ctx_skip != SKIP_YES) | 9050 if (cctx.ctx_skip != SKIP_YES) |
9051 emsg(_(e_ambiguous_use_of_user_defined_command)); | 9051 emsg(_(e_ambiguous_use_of_user_defined_command)); |
9052 goto erret; | 9052 goto erret; |
9053 } | 9053 } |
9054 | |
9055 // When using ":legacy cmd" always use compile_exec(). | |
9056 if (local_cmdmod.cmod_flags & CMOD_LEGACY) | |
9057 ea.cmdidx = CMD_legacy; | |
9054 | 9058 |
9055 if (p == ea.cmd && ea.cmdidx != CMD_SIZE) | 9059 if (p == ea.cmd && ea.cmdidx != CMD_SIZE) |
9056 { | 9060 { |
9057 if (cctx.ctx_skip == SKIP_YES) | 9061 if (cctx.ctx_skip == SKIP_YES) |
9058 { | 9062 { |