summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-06-07 23:29:01 +0900
committeraycabta <aycabta@gmail.com>2020-07-22 02:31:46 +0900
commitc72a2fad9717a6090aa792c31eb0043886d0fb39 (patch)
treea4de42bfbdb0792d131f502a28292a57c17a1fdc /object.c
parent1dfd24a7fc4e2877d49d2a3326925080e2972cf1 (diff)
[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 'object.c')
0 files changed, 0 insertions, 0 deletions