Mercurial > vim
comparison src/testdir/test_vim9_expr.vim @ 24176:12378fbc99bc v8.2.2629
patch 8.2.2629: Vim9: error for #{{ is not desired
Commit: https://github.com/vim/vim/commit/a0399efa72380115a3eb650544dd64e459476bd2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 20 15:00:01 2021 +0100
patch 8.2.2629: Vim9: error for #{{ is not desired
Problem: Vim9: error for #{{ is not desired.
Solution: Adjust the checks. (closes https://github.com/vim/vim/issues/7990)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 20 Mar 2021 15:15:02 +0100 |
parents | 99bfaa4693db |
children | c20e763bc73c |
comparison
equal
deleted
inserted
replaced
24175:96522ca7aac2 | 24176:12378fbc99bc |
---|---|
2153 endif | 2153 endif |
2154 | 2154 |
2155 # automatic conversion from number to string | 2155 # automatic conversion from number to string |
2156 var n = 123 | 2156 var n = 123 |
2157 var dictnr = {[n]: 1} | 2157 var dictnr = {[n]: 1} |
2158 | |
2159 # comment to start fold is OK | |
2160 var x1: number #{{ fold | |
2161 var x2 = 9 #{{ fold | |
2158 END | 2162 END |
2159 CheckDefAndScriptSuccess(lines) | 2163 CheckDefAndScriptSuccess(lines) |
2160 | 2164 |
2161 # legacy syntax doesn't work | 2165 # legacy syntax doesn't work |
2162 CheckDefAndScriptFailure(["var x = #{key: 8}"], 'E1170:', 1) | 2166 CheckDefAndScriptFailure(["var x = #{key: 8}"], 'E1170:', 1) |