ruby/lib/irb
aycabta c72a2fad97 [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
2020-07-22 02:31:46 +09:00
..
cmd [ruby/irb] Check existence of rc files in irb_info command 2020-04-29 19:13:14 +09:00
ext [DOC] get rid of parsing as TIDYLINK unintentionally 2020-04-07 13:59:38 +09:00
lc [ruby/irb] Exclude useless files from RDoc 2020-02-01 17:03:59 +09:00
.document [ruby/irb] Exclude useless files from RDoc 2020-02-01 17:03:59 +09:00
color.rb [ruby/irb] Simplify RubyLex.compile_with_errors_suppressed 2020-07-22 02:31:46 +09:00
completion.rb [ruby/irb] Unnamed groups are not captured when named groups are used 2020-03-26 17:41:21 +09:00
context.rb [DOC] get rid of parsing as TIDYLINK unintentionally 2020-04-07 13:59:38 +09:00
easter-egg.rb [ruby/irb] Use 0.step instead of (..0).each for Ruby 2.5 2020-02-12 13:14:28 +09:00
extend-command.rb [ruby/irb] Suppress "method redefined" warning 2020-04-29 19:13:14 +09:00
frame.rb Remove e2mmap dependency 2019-11-25 05:38:09 +09:00
help.rb lib/*: Prefer require_relative over require, remove explicit extension 2018-11-02 17:52:43 +00:00
init.rb Support XDG_* (#2174) 2020-04-23 19:16:06 +09:00
input-method.rb [ruby/irb] Check existence of rc files in irb_info command 2020-04-29 19:13:14 +09:00
inspector.rb Add --colorize and --nocolorize options to IRB 2019-05-21 08:57:21 +09:00
irb.gemspec [ruby/irb] Include easter-egg.rb in gemspec 2020-02-15 21:52:03 +09:00
locale.rb Use Reline.encoding_system_needs if exists 2020-01-14 15:40:38 +09:00
magic-file.rb Don't pollute toplevel by an IRB internal method 2017-06-15 10:43:17 +00:00
notifier.rb Remove e2mmap dependency 2019-11-25 05:38:09 +09:00
output-method.rb Remove e2mmap dependency 2019-11-25 05:38:09 +09:00
ruby-lex.rb [ruby/irb] Simplify RubyLex.compile_with_errors_suppressed 2020-07-22 02:31:46 +09:00
ruby_logo.aa IRB never show RubyVM's doc 2019-05-29 06:57:47 +09:00
src_encoding.rb Don't pollute toplevel by an IRB internal method 2017-06-15 10:43:17 +00:00
version.rb [ruby/irb] Version 1.2.4 2020-05-17 19:26:53 +09:00
workspace.rb Remove e2mmap dependency 2019-11-25 05:38:09 +09:00
ws-for-case-2.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
xmp.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00