Mercurial > vim
comparison src/ex_docmd.c @ 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 | 05f9e8f2016c |
children | 2063b858cad9 |
comparison
equal
deleted
inserted
replaced
25468:0290badbbf7b | 25469:dcd45fe7fe2e |
---|---|
2739 | 2739 |
2740 /* | 2740 /* |
2741 * Check for an Ex command with optional tail, not followed by "(". | 2741 * Check for an Ex command with optional tail, not followed by "(". |
2742 * If there is a match advance "pp" to the argument and return TRUE. | 2742 * If there is a match advance "pp" to the argument and return TRUE. |
2743 */ | 2743 */ |
2744 static int | 2744 int |
2745 checkforcmd_noparen( | 2745 checkforcmd_noparen( |
2746 char_u **pp, // start of command | 2746 char_u **pp, // start of command |
2747 char *cmd, // name of command | 2747 char *cmd, // name of command |
2748 int len) // required length | 2748 int len) // required length |
2749 { | 2749 { |