Adding upstream version 2:9.1.1230.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
95f88d82e6
commit
0985b09abd
6270 changed files with 2000183 additions and 0 deletions
60
runtime/syntax/testdir/input/vim_ex_for.vim
Normal file
60
runtime/syntax/testdir/input/vim_ex_for.vim
Normal file
|
@ -0,0 +1,60 @@
|
|||
" Vim :for command
|
||||
|
||||
|
||||
" :for {var} in {object}
|
||||
|
||||
let expr = [42]
|
||||
|
||||
for foo in expr
|
||||
echo foo
|
||||
endfor
|
||||
|
||||
for foo in expr " comment
|
||||
echo foo
|
||||
endfor
|
||||
|
||||
for foo in
|
||||
"\ comment
|
||||
\ expr
|
||||
echo foo
|
||||
endfor
|
||||
|
||||
for foo in expr | echo foo | endfor
|
||||
|
||||
for foo in [42]
|
||||
echo foo
|
||||
endfor
|
||||
|
||||
for foo in [42] | echo foo | endfor
|
||||
|
||||
echo "foo" | for foo in expr
|
||||
echo foo
|
||||
endfor
|
||||
|
||||
|
||||
" :for [{var1}, {var2}, ...] in {listlist}
|
||||
|
||||
let expr = [[42, 83]]
|
||||
|
||||
for [foo, bar] in expr
|
||||
echo foo bar
|
||||
endfor
|
||||
|
||||
for [foo, bar] in expr " comment
|
||||
echo foo bar
|
||||
endfor
|
||||
|
||||
for [foo, bar] in
|
||||
"\ comment
|
||||
\ expr
|
||||
echo foo bar
|
||||
endfor
|
||||
|
||||
for [foo, bar] in expr | echo foo bar | endfor
|
||||
|
||||
for [foo, bar] in [[42, 83]]
|
||||
echo foo bar
|
||||
endfor
|
||||
|
||||
for [foo, bar] in [[42, 83]] | echo foo bar | endfor
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue