patch 8.2.3405: cannot have a comment line in a {} block of a user command
Problem: Cannot have a comment line in a {} block of a user command.
Solution: Continue after the line break. (closes #8837)
diff --git a/src/testdir/test_usercommands.vim b/src/testdir/test_usercommands.vim
index 9cb592e..3f15dc1 100644
--- a/src/testdir/test_usercommands.vim
+++ b/src/testdir/test_usercommands.vim
@@ -624,7 +624,8 @@
func Test_usercmd_with_block()
command DoSomething {
- g:didit = 'yes'
+ g:didit = 'yes' # comment
+ # comment line
g:didmore = 'more'
}
DoSomething