Mercurial > vim
comparison src/testdir/vim9.vim @ 21937:b931df03adcc v8.2.1518
patch 8.2.1518: Vim9: cannot assign to local option
Commit: https://github.com/vim/vim/commit/2e80095501238e0c6b702ac7cdfa2e2b763dba28
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 23 19:34:48 2020 +0200
patch 8.2.1518: Vim9: cannot assign to local option
Problem: Vim9: cannot assign to local option.
Solution: Skip over "&l:" and "&g:". (closes https://github.com/vim/vim/issues/6749)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Aug 2020 19:45:03 +0200 |
parents | a211bca98bc3 |
children | da851f3b6a0b |
comparison
equal
deleted
inserted
replaced
21936:8303e21ae158 | 21937:b931df03adcc |
---|---|
39 writefile(lines, 'Xdef') | 39 writefile(lines, 'Xdef') |
40 so Xdef | 40 so Xdef |
41 delete('Xdef') | 41 delete('Xdef') |
42 enddef | 42 enddef |
43 | 43 |
44 def CheckDefAndScriptSuccess(lines: list<string>) | |
45 CheckDefSuccess(lines) | |
46 CheckScriptSuccess(['vim9script'] + lines) | |
47 enddef | |
48 | |
44 " Check that a command fails both when used in a :def function and when used | 49 " Check that a command fails both when used in a :def function and when used |
45 " in Vim9 script. | 50 " in Vim9 script. |
46 def CheckScriptAndDefFailure(lines: list<string>, error: string, lnum = -3) | 51 def CheckScriptAndDefFailure(lines: list<string>, error: string, lnum = -3) |
47 CheckDefFailure(lines, error, lnum) | 52 CheckDefFailure(lines, error, lnum) |
48 CheckScriptFailure(['vim9script'] + lines, error, lnum + 1) | 53 CheckScriptFailure(['vim9script'] + lines, error, lnum + 1) |