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>
diff --git a/runtime/syntax/testdir/input/vim9_comment.vim b/runtime/syntax/testdir/input/vim9_comment.vim
index 7d22f46..590ddd8 100644
--- a/runtime/syntax/testdir/input/vim9_comment.vim
+++ b/runtime/syntax/testdir/input/vim9_comment.vim
@@ -55,6 +55,18 @@
\ 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 @@
# 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,
+}
+