mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.2.1314: Vim9: rule for comment after :function is confusing
Problem: Vim9: rule for comment after :function is confusing. Solution: Allow double quoted comment after :function in vim9script. (closes #6556)
This commit is contained in:
@@ -2284,6 +2284,10 @@ def Test_vim9_comment()
|
||||
'vim9script',
|
||||
'function # comment',
|
||||
])
|
||||
CheckScriptFailure([
|
||||
'vim9script',
|
||||
'function " comment',
|
||||
], 'E129:')
|
||||
CheckScriptFailure([
|
||||
'vim9script',
|
||||
'function# comment',
|
||||
@@ -2333,11 +2337,11 @@ def Test_vim9_comment()
|
||||
'func Test() " comment',
|
||||
'endfunc',
|
||||
])
|
||||
CheckScriptFailure([
|
||||
CheckScriptSuccess([
|
||||
'vim9script',
|
||||
'func Test() " comment',
|
||||
'endfunc',
|
||||
], 'E488:')
|
||||
])
|
||||
|
||||
CheckScriptSuccess([
|
||||
'def Test() # comment',
|
||||
|
Reference in New Issue
Block a user