mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04: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:
@@ -983,10 +983,17 @@ def Test_automatic_line_continuation()
|
||||
} " comment
|
||||
assert_equal({'one': 1, 'two': 2, 'three': 3}, mydict)
|
||||
mydict = #{
|
||||
one: 1, " comment
|
||||
two:
|
||||
2,
|
||||
three: 3 " comment
|
||||
one: 1, # comment
|
||||
two: # comment
|
||||
2, # comment
|
||||
three: 3 # comment
|
||||
}
|
||||
assert_equal(#{one: 1, two: 2, three: 3}, mydict)
|
||||
mydict = #{
|
||||
one: 1,
|
||||
two:
|
||||
2,
|
||||
three: 3
|
||||
}
|
||||
assert_equal(#{one: 1, two: 2, three: 3}, mydict)
|
||||
|
||||
|
Reference in New Issue
Block a user