Skip to content

Commit

Permalink
- Backtrack whitespace after parsing of an import statement. (fixes #…
Browse files Browse the repository at this point in the history
…104)

This fixes code like:

	import Foo::Bar
	-> f(x) { ... }
  • Loading branch information
trizen committed Aug 4, 2019
1 parent ab9ff24 commit 2a9e784
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Sidef/Parser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1951,6 +1951,8 @@ package Sidef::Parser {
$self->get_init_vars(code => $opt{code},
with_vals => 0);

$self->backtrack_whitespace();

@{$var_names}
|| $self->fatal_error(
code => $_,
Expand Down

0 comments on commit 2a9e784

Please sign in to comment.