Skip to content

mrbc with multiple files fails if files don't end or begin with newline #2361

@fkaa

Description

@fkaa

Guessing it has to do with the source being concatenated and mrbc expecting eof in the form of \n.

a.rb:

module A
end

b.rb:

module B
end

output:

$ mrbc -v -o out.mrb b.rb  a.rb
mruby 1.0.0 (2014-01-10) 
a.rb:0:9: syntax error, unexpected keyword_module, expecting $end
NODE_SCOPE:
  NODE_BEGIN:
    NODE_MODULE:
      :B
      body:
        NODE_BEGIN:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions