comparison src/testdir/test_let.vim @ 18713:baf890fa1621 v8.1.2348

patch 8.1.2348: :const cannot be followed by "| endif" Commit: https://github.com/vim/vim/commit/8f76e6b12b958f2779444a92234bbaf3f49eeb99 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 26 16:50:30 2019 +0100 patch 8.1.2348: :const cannot be followed by "| endif" Problem: :const cannot be followed by "| endif". Solution: Check following command for :const. (closes https://github.com/vim/vim/issues/5269) Also fix completion after :const.
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Nov 2019 17:00:04 +0100
parents f7bb0e413fe1
children da98d2ed8dc5
comparison
equal deleted inserted replaced
18712:9135f4563b16 18713:baf890fa1621
22 call assert_equal(s, out) 22 call assert_equal(s, out)
23 23
24 let out = execute('let a {0 == 1 ? "a" : "b"}') 24 let out = execute('let a {0 == 1 ? "a" : "b"}')
25 let s = "\na #1\nb #2" 25 let s = "\na #1\nb #2"
26 call assert_equal(s, out) 26 call assert_equal(s, out)
27
28 let x = 0
29 if 0 | let x = 1 | endif
30 call assert_equal(0, x)
27 endfunc 31 endfunc
28 32
29 func s:set_arg1(a) abort 33 func s:set_arg1(a) abort
30 let a:a = 1 34 let a:a = 1
31 endfunction 35 endfunction