forked from aniani/vim
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)
This commit is contained in:
@@ -624,7 +624,8 @@ endfunc
|
||||
|
||||
func Test_usercmd_with_block()
|
||||
command DoSomething {
|
||||
g:didit = 'yes'
|
||||
g:didit = 'yes' # comment
|
||||
# comment line
|
||||
g:didmore = 'more'
|
||||
}
|
||||
DoSomething
|
||||
|
||||
Reference in New Issue
Block a user