0
0
mirror of https://github.com/vim/vim.git synced 2025-10-19 08:04:27 -04:00

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:
Bram Moolenaar
2021-09-06 17:10:59 +02:00
parent 01dd6c3732
commit ec1b0968aa
3 changed files with 13 additions and 1 deletions

View File

@@ -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