mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Fix begin/end blocks (scope entry/exit)
This commit is contained in:
parent
7ff488b91c
commit
5abb457ecd
6
test/fixtures/ruby/begin-block.diffA-B.txt
vendored
6
test/fixtures/ruby/begin-block.diffA-B.txt
vendored
@ -1,5 +1,5 @@
|
||||
(Program
|
||||
{+(Identifier)+}
|
||||
(BeginBlock
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
||||
(ScopeEntry
|
||||
{+(Identifier)+}
|
||||
{-(Identifier)-}))
|
||||
|
4
test/fixtures/ruby/begin-block.diffB-A.txt
vendored
4
test/fixtures/ruby/begin-block.diffB-A.txt
vendored
@ -1,6 +1,6 @@
|
||||
(Program
|
||||
{+(BeginBlock
|
||||
{+(ScopeEntry
|
||||
(Identifier))+}
|
||||
{-(Identifier)-}
|
||||
{-(BeginBlock
|
||||
{-(ScopeEntry
|
||||
(Identifier))-})
|
||||
|
2
test/fixtures/ruby/begin-block.parseA.txt
vendored
2
test/fixtures/ruby/begin-block.parseA.txt
vendored
@ -1,3 +1,3 @@
|
||||
(Program
|
||||
(BeginBlock
|
||||
(ScopeEntry
|
||||
(Identifier)))
|
||||
|
2
test/fixtures/ruby/begin-block.parseB.txt
vendored
2
test/fixtures/ruby/begin-block.parseB.txt
vendored
@ -1,4 +1,4 @@
|
||||
(Program
|
||||
(Identifier)
|
||||
(BeginBlock
|
||||
(ScopeEntry
|
||||
(Identifier)))
|
||||
|
6
test/fixtures/ruby/end-block.diffA-B.txt
vendored
6
test/fixtures/ruby/end-block.diffA-B.txt
vendored
@ -1,5 +1,5 @@
|
||||
(Program
|
||||
{+(Identifier)+}
|
||||
(EndBlock
|
||||
{ (Identifier)
|
||||
->(Identifier) }))
|
||||
(ScopeExit
|
||||
{+(Identifier)+}
|
||||
{-(Identifier)-}))
|
||||
|
4
test/fixtures/ruby/end-block.diffB-A.txt
vendored
4
test/fixtures/ruby/end-block.diffB-A.txt
vendored
@ -1,6 +1,6 @@
|
||||
(Program
|
||||
{+(EndBlock
|
||||
{+(ScopeExit
|
||||
(Identifier))+}
|
||||
{-(Identifier)-}
|
||||
{-(EndBlock
|
||||
{-(ScopeExit
|
||||
(Identifier))-})
|
||||
|
2
test/fixtures/ruby/end-block.parseA.txt
vendored
2
test/fixtures/ruby/end-block.parseA.txt
vendored
@ -1,3 +1,3 @@
|
||||
(Program
|
||||
(EndBlock
|
||||
(ScopeExit
|
||||
(Identifier)))
|
||||
|
2
test/fixtures/ruby/end-block.parseB.txt
vendored
2
test/fixtures/ruby/end-block.parseB.txt
vendored
@ -1,4 +1,4 @@
|
||||
(Program
|
||||
(Identifier)
|
||||
(EndBlock
|
||||
(ScopeExit
|
||||
(Identifier)))
|
||||
|
Loading…
Reference in New Issue
Block a user