diff options
author | aycabta <aycabta@gmail.com> | 2020-06-07 23:29:01 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-07-22 02:31:46 +0900 |
commit | c72a2fad9717a6090aa792c31eb0043886d0fb39 (patch) | |
tree | a4de42bfbdb0792d131f502a28292a57c17a1fdc /test | |
parent | 1dfd24a7fc4e2877d49d2a3326925080e2972cf1 (diff) | |
download | ruby-c72a2fad9717a6090aa792c31eb0043886d0fb39.tar.gz |
[ruby/irb] Simplify RubyLex.compile_with_errors_suppressed
nobu-san reviewed,
https://github.com/ruby/irb/pull/106#pullrequestreview-423400033
> How about lexer = Ripper::Lexer.new(";\n#{code}", nil, 0)?
> Encoding pragma is effective only at the beginning.
> And the semicolon and newline will be skipped because the position is before
> the initial pos.
I employ the way.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
https://github.com/ruby/irb/commit/e593cc65b7
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions