-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
189 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
test/*.out | ||
test/*.vimout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
" test1 | ||
function s:foo(a, b, ...) | ||
return 0 | ||
endfunction | ||
if 1 | ||
echo "if 1" | ||
elseif 2 | ||
echo "elseif 2" | ||
else | ||
echo "else" | ||
endif | ||
while 1 | ||
continue | ||
break | ||
endwhile | ||
for [a, b; c] in d | ||
echo a b c | ||
endfor | ||
delfunction s:foo | ||
call s:foo(1, 2, 3) | ||
let a = {"x" : "y"} | ||
let [a, b; c] = [1, 2, 3] | ||
let [a, b; c] += [1, 2, 3] | ||
let [a, b; c] -= [1, 2, 3] | ||
let [a, b; c] .= [1, 2, 3] | ||
let foo.bar.baz = 123 | ||
let foo[bar()][baz()] = 456 | ||
let foo[bar()].baz = 789 | ||
let foo[1:2] = [3, 4] | ||
unlet a b c | ||
lockvar a b c | ||
lockvar 1 a b c | ||
unlockvar a b c | ||
unlockvar 1 a b c | ||
try | ||
throw "err" | ||
catch /err/ | ||
echo "catch /err/" | ||
catch | ||
echo "catch" | ||
finally | ||
echo "finally" | ||
endtry | ||
echohl Error | ||
echon "echon" | ||
echomsg "echomsg" | ||
echoerr "echoerr" | ||
execute "normal ihello" | ||
echo [] [1, 2, 3] [1, 2, 3] | ||
echo {} {"x" : "y"} {"x" : "y", "z" : "w"} | ||
echo x[0] x[y] | ||
echo x[1:2] x[1:] x[:2] x[:] | ||
echo x.y x.y.z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if 1 | ||
set nocp | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
" test_curly | ||
echo xy{z} | ||
echo x{y}z | ||
echo {x}yz | ||
echo {x}{y}{z} | ||
echo {x{y{z}}} | ||
echo x{("y" . "w")}z | ||
echo {x} | ||
echo x#{y}#z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
" test_dict | ||
echo {} | ||
echo {'1' : 1} | ||
echo {1 : 1} | ||
echo {x : 1} | ||
echo {"\<cr>" : 1} | ||
echo {"vim" : 1} | ||
echo {(1 + 1) : 2} | ||
" XXX: echo {x:1} | ||
echo {'x' : {}} | ||
echo [{}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
echo foo.bar | ||
echo foo.bar.baz | ||
echo ("foo" . "bar") | ||
echo (foo . "bar") | ||
echo ("foo" . bar) | ||
echo foo.bar() | ||
echo (foo . s:bar) | ||
echo foo.123 | ||
echo foo.123abc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
" test_emptylc | ||
echo 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
function! F() abort | ||
endfunction | ||
function! F() abort closure dict range | ||
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
" test_lambda | ||
echo { -> (1 + 1)} | ||
echo {i, v -> (v >= s:x)} | ||
echo {... -> a:000} | ||
echo {x -> (x * 2)}(14) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
aboveleft belowright botright browse confirm hide keepalt keepjumps keepmarks keeppatterns lockmarks noswapfile silent tab topleft verbose vertical | ||
call Func() | ||
aboveleft belowright botright browse confirm hide keepalt keepjumps keepmarks keeppatterns lockmarks noswapfile silent tab topleft verbose vertical | ||
call Func() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
echo (a is b) | ||
echo (a is? b) | ||
echo (a is# b) | ||
echo (a isnot b) | ||
echo (a isnot? b) | ||
echo (a isnot# b) | ||
echo (a || b) | ||
echo (a && b) | ||
echo (a == b) | ||
echo (a ==? b) | ||
echo (a ==# b) | ||
echo (a != b) | ||
echo (a !=? b) | ||
echo (a !=# b) | ||
echo (a >= b) | ||
echo (a >=? b) | ||
echo (a >=# b) | ||
echo (a <= b) | ||
echo (a <=? b) | ||
echo (a <=# b) | ||
echo (a =~ b) | ||
echo (a =~? b) | ||
echo (a =~# b) | ||
echo (a !~ b) | ||
echo (a !~? b) | ||
echo (a !~# b) | ||
echo (a > b) | ||
echo (a >? b) | ||
echo (a ># b) | ||
echo (a < b) | ||
echo (a <? b) | ||
echo (a <# b) | ||
echo (a + b) | ||
echo (a - b) | ||
echo (a . b) | ||
echo (a * b) | ||
echo (a / b) | ||
echo (a % b) | ||
echo (!(a)) | ||
echo (a ? b : c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if 1 | ||
syntax on | ||
endif | ||
syntax | ||
syntax enable | ||
syntax list GroupName | ||
syn match pythonError "[&|]\{2,}" display | ||
syntax match qfFileName /^\zs\S[^|]\+\/\ze[^|\/]\+\/[^|\/]\+|/ conceal cchar=+ | ||
syntax region jsString start=+"+ skip=+\\\("\|$\)+ end=+"\|$+ contains=jsSpecial,@Spell extend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if 1 | ||
wincmd p | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
call foo(a, b) | ||
call bar(c, d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
function F(a) | ||
endfunction | ||
function G(a) | ||
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
echo {a -> 0} | ||
echo {a -> 0} |