Mercurial > vim
comparison src/proto/ex_docmd.pro @ 25469:dcd45fe7fe2e v8.2.3271
patch 8.2.3271: Vim9: cannot use :command or :au with block in :def function
Commit: https://github.com/vim/vim/commit/e4db17fb6e2d029aa2dddfca703ace9bcf0d85fd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 1 21:19:43 2021 +0200
patch 8.2.3271: Vim9: cannot use :command or :au with block in :def function
Problem: Vim9: cannot use :command or :au with a block in a :def function.
Solution: Recognize the start of the block.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Aug 2021 21:30:03 +0200 |
parents | 65f04b6effd5 |
children | 2063b858cad9 |
comparison
equal
deleted
inserted
replaced
25468:0290badbbf7b | 25469:dcd45fe7fe2e |
---|---|
7 int getline_equal(char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie, char_u *(*func)(int, void *, int, getline_opt_T)); | 7 int getline_equal(char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie, char_u *(*func)(int, void *, int, getline_opt_T)); |
8 void *getline_cookie(char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie); | 8 void *getline_cookie(char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie); |
9 char_u *getline_peek(char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie); | 9 char_u *getline_peek(char_u *(*fgetline)(int, void *, int, getline_opt_T), void *cookie); |
10 char *ex_errmsg(char *msg, char_u *arg); | 10 char *ex_errmsg(char *msg, char_u *arg); |
11 int checkforcmd(char_u **pp, char *cmd, int len); | 11 int checkforcmd(char_u **pp, char *cmd, int len); |
12 int checkforcmd_noparen(char_u **pp, char *cmd, int len); | |
12 int parse_command_modifiers(exarg_T *eap, char **errormsg, cmdmod_T *cmod, int skip_only); | 13 int parse_command_modifiers(exarg_T *eap, char **errormsg, cmdmod_T *cmod, int skip_only); |
13 int has_cmdmod(cmdmod_T *cmod); | 14 int has_cmdmod(cmdmod_T *cmod); |
14 int cmdmod_error(void); | 15 int cmdmod_error(void); |
15 void apply_cmdmod(cmdmod_T *cmod); | 16 void apply_cmdmod(cmdmod_T *cmod); |
16 void undo_cmdmod(cmdmod_T *cmod); | 17 void undo_cmdmod(cmdmod_T *cmod); |