-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from haya14busa/vim-vimlparser-lambda
support lambda
- Loading branch information
Showing
13 changed files
with
175 additions
and
29 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
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 (dict)) | ||
(echo (dict ('1' 1))) | ||
(echo (dict (1 1))) | ||
(echo (dict (x 1))) | ||
(echo (dict ("\<cr>" 1))) | ||
(echo (dict ("vim" 1))) | ||
(echo (dict ((+ 1 1) 2))) | ||
; XXX: echo {x:1} | ||
(echo (dict ('x' (dict)))) | ||
(echo (list (dict))) |
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 @@ | ||
vimlparser: E125: Illegal argument: a:bar: line 1 col 37 |
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 @@ | ||
echo {a, b, C, d_e, _f, g_, h0, i1, a:bar -> 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 @@ | ||
vimlparser: E853: Duplicate argument name: b: line 1 col 13 |
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 @@ | ||
echo {a, b, b, c ->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,5 @@ | ||
; test_lambda | ||
(echo (lambda () (+ 1 1))) | ||
(echo (lambda (i v) (>= v s:x))) | ||
(echo (lambda (...) a:000)) | ||
(echo ((lambda (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,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 @@ | ||
vimlparser: E475: Invalid argument: White space is not allowed before comma: line 10 col 8 |
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,10 @@ | ||
echo {a->'OK1'} | ||
echo { a->'OK2'} | ||
echo {a ->'OK3'} | ||
echo { a ->'OK4'} | ||
echo {a,b->'OK5'} | ||
echo {a, b->'OK6'} | ||
echo { a, b->'OK7'} | ||
echo {a, b ->'OK8'} | ||
echo { a, b ->'OK9'} | ||
echo {a ,b->'NG'} |
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 (lambda (a) 0)) | ||
(echo (lambda (a) 0)) |
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} |