mirror of
https://github.com/vim/vim.git
synced 2025-11-09 10:37:17 -05:00
patch 8.2.0567: Vim9: cannot put comments halfway expressions
Problem: Vim9: cannot put comments halfway expressions. Solution: Support # comments in many places.
This commit is contained in:
@@ -569,6 +569,14 @@ def MultiLine(
|
||||
return arg1 .. arg2 .. join(rest, '-')
|
||||
enddef
|
||||
|
||||
def MultiLineComment(
|
||||
arg1: string, # comment
|
||||
arg2 = 1234, # comment
|
||||
...rest: list<string> # comment
|
||||
): string # comment
|
||||
return arg1 .. arg2 .. join(rest, '-')
|
||||
enddef
|
||||
|
||||
def Test_multiline()
|
||||
assert_equal('text1234', MultiLine('text'))
|
||||
assert_equal('text777', MultiLine('text', 777))
|
||||
|
||||
Reference in New Issue
Block a user