patch 8.2.2135: Vim9: #{ still seen as start of dict in some places
Problem: Vim9: #{ still seen as start of dict in some places.
Solution: Remove check for { after #. (closes #7456)
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim
index bb070ca..45103fc 100644
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -2069,7 +2069,21 @@
CheckScriptSuccess([
'vim9script',
'# something',
+ '#something',
+ '#{something',
])
+
+ split Xfile
+ CheckScriptSuccess([
+ 'vim9script',
+ 'edit #something',
+ ])
+ CheckScriptSuccess([
+ 'vim9script',
+ 'edit #{something',
+ ])
+ close
+
CheckScriptFailure([
'vim9script',
':# something',