[go: nahoru, domu]

Skip to content

Commit

Permalink
keep lineno even in embedded ruby code
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Dec 11, 2017
1 parent 8837a36 commit dbfef70
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions misc/embed_mruby_code.pl
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
for my $path (map { path($_) } grep { $_ =~ /\.rb$/ } @mruby_files) {
my @lines = $path->lines({ chomp => 1 });

my $in_license = 1;
@lines = grep { $in_license = 0 if $_ !~ /^#/; ! $in_license } @lines;
@lines = grep { $_ =~ /\S/ } @lines;
@lines = map {
s/\x5c/\\\\/g;
s/\x22/\\"/g;
Expand Down

0 comments on commit dbfef70

Please sign in to comment.