mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
These now correctly parse as blocks
This commit is contained in:
parent
6980e4e3cb
commit
8875a29c55
11
test/fixtures/ruby/lambda.diffA-B.txt
vendored
11
test/fixtures/ruby/lambda.diffA-B.txt
vendored
@ -1,17 +1,18 @@
|
||||
(Program
|
||||
{-(Call
|
||||
{-(Identifier)-}
|
||||
{-(Hash)-}
|
||||
{-(Empty)-})-}
|
||||
(Call
|
||||
(Identifier)
|
||||
(Function
|
||||
(Empty)
|
||||
{+(Identifier)+}
|
||||
{ (Identifier)
|
||||
{ ([])
|
||||
->(Plus
|
||||
{+(Identifier)+}
|
||||
{+(Integer)+}) }))
|
||||
{-(Call
|
||||
{-(Identifier)-}
|
||||
{-(Function
|
||||
{-(Empty)-}
|
||||
{-(Identifier)-})-})-}
|
||||
{-(Call
|
||||
{-(Identifier)-}
|
||||
{-(Function
|
||||
|
11
test/fixtures/ruby/lambda.diffB-A.txt
vendored
11
test/fixtures/ruby/lambda.diffB-A.txt
vendored
@ -1,8 +1,4 @@
|
||||
(Program
|
||||
{+(Call
|
||||
{+(Identifier)+}
|
||||
{+(Hash)+}
|
||||
{+(Empty)+})+}
|
||||
(Call
|
||||
(Identifier)
|
||||
(Function
|
||||
@ -11,7 +7,12 @@
|
||||
{ (Plus
|
||||
{-(Identifier)-}
|
||||
{-(Integer)-})
|
||||
->(Identifier) }))
|
||||
->([]) }))
|
||||
{+(Call
|
||||
{+(Identifier)+}
|
||||
{+(Function
|
||||
{+(Empty)+}
|
||||
{+(Identifier)+})+})+}
|
||||
{+(Call
|
||||
{+(Identifier)+}
|
||||
{+(Function
|
||||
|
5
test/fixtures/ruby/lambda.parseA.txt
vendored
5
test/fixtures/ruby/lambda.parseA.txt
vendored
@ -1,8 +1,9 @@
|
||||
(Program
|
||||
(Call
|
||||
(Identifier)
|
||||
(Hash)
|
||||
(Empty))
|
||||
(Function
|
||||
(Empty)
|
||||
([])))
|
||||
(Call
|
||||
(Identifier)
|
||||
(Function
|
||||
|
Loading…
Reference in New Issue
Block a user