Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add enc named arg to parsefile for eli-se++.
  • Loading branch information
jnthn committed Mar 31, 2015
1 parent 5668f29 commit a07f735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Grammar.pm
Expand Up @@ -11,8 +11,8 @@ my class Grammar is Cursor {
nqp::getlexcaller('$/') =
self."!cursor_init"($target, |%opt)."$rule"(|$args).MATCH;
}
method parsefile(Str(Cool) $filename, *%opts) {
my $match := self.parse($filename.IO.slurp, |%opts);
method parsefile(Str(Cool) $filename, :$enc, *%opts) {
my $match := self.parse($filename.IO.slurp(:$enc), |%opts);
nqp::getlexcaller('$/') = $match;
}
}
Expand Down

0 comments on commit a07f735

Please sign in to comment.