comparison src/testdir/test_vim9_expr.vim @ 28897:37e05627acb1 v8.2.4971

patch 8.2.4971: Vim9: interpolated string seen as range Commit: https://github.com/vim/vim/commit/40c141d333292d625907f4de13766cbbc2223911 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 17 13:14:23 2022 +0100 patch 8.2.4971: Vim9: interpolated string seen as range Problem: Vim9: interpolated string seen as range. Solution: Recognize an interpolated string at the start of a command line. (closes #10434)
author Bram Moolenaar <Bram@vim.org>
date Tue, 17 May 2022 14:15:02 +0200
parents ffd57385eef8
children 2644e49d5147
comparison
equal deleted inserted replaced
28896:915bc19857dd 28897:37e05627acb1
3570 var lines =<< trim END 3570 var lines =<< trim END
3571 new 3571 new
3572 setline(1, ['first', 'last']) 3572 setline(1, ['first', 'last'])
3573 'second'->append(1) 3573 'second'->append(1)
3574 "third"->append(2) 3574 "third"->append(2)
3575 assert_equal(['first', 'second', 'third', 'last'], getline(1, '$')) 3575 $"fourth"->append(3)
3576 $'fifth'->append(4)
3577 assert_equal(['first', 'second', 'third', 'fourth', 'fifth', 'last'], getline(1, '$'))
3576 bwipe! 3578 bwipe!
3577 3579
3578 var bufnr = bufnr() 3580 var bufnr = bufnr()
3579 var loclist = [{bufnr: bufnr, lnum: 42, col: 17, text: 'wrong'}] 3581 var loclist = [{bufnr: bufnr, lnum: 42, col: 17, text: 'wrong'}]
3580 loclist->setloclist(0) 3582 loclist->setloclist(0)