forked from aniani/vim
patch 8.2.3690: Vim9: "filter #pat# cmd" does not work
Problem: Vim9: "filter #pat# cmd" does not work. Solution: Do not see #pat# as a comment.
This commit is contained in:
@@ -2910,7 +2910,14 @@ parse_command_modifiers(
|
||||
int c = 0;
|
||||
|
||||
if (!checkforcmd_noparen(&p, "filter", 4)
|
||||
|| *p == NUL || ends_excmd(*p))
|
||||
|| *p == NUL
|
||||
|| (ends_excmd(*p)
|
||||
#ifdef FEAT_EVAL
|
||||
// in ":filter #pat# cmd" # does not
|
||||
// start a comment
|
||||
&& (!in_vim9script() || VIM_ISWHITE(p[1]))
|
||||
#endif
|
||||
))
|
||||
break;
|
||||
if (*p == '!')
|
||||
{
|
||||
|
Reference in New Issue
Block a user