Problem: Vim9: "filter" command modifier doesn't work.
Solution: Check for space on char before argument. (closes #7216,
closes #7222)
}
#ifdef FEAT_EVAL
// Avoid that "filter(arg)" is recognized.
- if (in_vim9script() && !VIM_ISWHITE(*p))
+ if (in_vim9script() && !VIM_ISWHITE(p[-1]))
break;
#endif
if (skip_only)
assert_equal([#{x: 3, y: 4}], tags)
enddef
+def Test_filter_is_recognized()
+ var lines =<< trim END
+ final expected = "\nType Name Content\n c \"c piyo"
+ @a = 'hoge'
+ @b = 'fuga'
+ @c = 'piyo'
+
+ assert_equal(execute('filter /piyo/ registers abc'), expected)
+ END
+ CheckDefAndScriptSuccess(lines)
+enddef
+
def Test_eval_command()
var from = 3
var to = 5
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1923,
/**/
1922,
/**/