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.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index d74ef90..6d2923c 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2910,7 +2910,14 @@
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 == '!')
{