goccy / p5-Compiler-Parser

Create Abstract Syntax Tree for Perl5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't parse `'use Foo; my $x = sub { }'` correctly.

tokuhirom opened this issue · comments

$VAR1 = bless( {
                 'token' => bless( {
                                     'type' => 88,
                                     'data' => 'Foo',
                                     'kind' => 21,
                                     'stype' => 0,
                                     'name' => 'UsedName',
                                     'has_warnings' => 0,
                                     'line' => 1
                                   }, 'Compiler::Lexer::Token' )
               }, 'Compiler::Parser::Node::Module' );

I fixed this issue at 610779b