ruby / prism

Prism Ruby parser
https://ruby.github.io/prism/
MIT License
790 stars 134 forks source link

Set `#line" directives to respect the path in ruby/ruby repo #2899

Closed mame closed 2 weeks ago

mame commented 2 weeks ago

ruby/ruby measures test coverage of C code, but the #line directive generated by prism points to a file that does not exist, so coverage is not taken properly.

This changeset specifies the location of the source files as a relative path in terms of ruby/ruby repo.