forked from aniani/vim
runtime(vim): Update base-syntax, fix inline Vim9 dict comments at SOL
Match Vim9 comments at start-of-line (no leading whitespace) in dictionaries, lists and parenthesised expressions and argument lists. Addresses https://github.com/vim/vim/pull/14975#issuecomment-2832643115 Report and fix by Aliaksei Budavei. closes: #17211 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
fa9753a721
commit
b9ffbf57f8
@@ -55,6 +55,18 @@ echo "TOP"
|
||||
\ arg2
|
||||
|
||||
|
||||
# Expression comments
|
||||
|
||||
var foo = { # comment
|
||||
# comment
|
||||
bar: 42, # comment
|
||||
# comment
|
||||
# comment
|
||||
baz: 42 # comment
|
||||
# comment
|
||||
} # comment
|
||||
|
||||
|
||||
# Issue: #13047
|
||||
|
||||
if !exists(":DiffOrig")
|
||||
@@ -66,3 +78,15 @@ endif
|
||||
# Issue: #11307 and #11560
|
||||
|
||||
# This is what we call " blah
|
||||
|
||||
|
||||
# PR: #14975
|
||||
# https://github.com/vim/vim/pull/14975#issuecomment-2832643115
|
||||
|
||||
var d = {
|
||||
a: 0,
|
||||
# a ' quote {{{
|
||||
#}}}
|
||||
b: 0,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user