summaryrefslogtreecommitdiff
path: root/lib/irb
AgeCommit message (Collapse)Author
2019-07-27Ignore history file without saving if permissions cannot be changedJeremy Evans
Fixes [Ruby Bug 13907]
2019-07-27Use JRuby equivalent of RubyVM.compile.Charles Oliver Nutter
RubyVM is specific to CRuby and not supported on JRuby. This is the equivalent operation.
2019-07-20Some keywords, "true", "false", and "nil" should be treated as a variableaycabta
2019-07-19Fix showing doc of "nil.to_s", nil doesn't have #nameaycabta
2019-07-15Require Ruby 2.4 or later because needs lex_state from Ripperaycabta
2019-07-15Change PROMPT_S of simple-promptKazuhiro NISHIYAMA
When input `"` or `/` with simple-prompt, Before: `"` or `/` (prompt disappeared and indent is changed) After: `"> "` or `/> /` (indent is unchanged since `>> `)
2019-07-15Simplify history saving codeaycabta
2019-07-15Use #to_a for Readline::HISTORY directlyaycabta
2019-07-15Add lib/irb/color.rb to destribution file listaycabta
2019-07-15Remove debug printaycabta
2019-07-15Support multiline irb_historyaycabta
A history line ends with "\" to escape newline if it's a continuous line.
2019-07-15Save history in IRB is enabled by defaultaycabta
2019-07-15Auto indent in IRB is enabled by defaultaycabta
2019-07-15Version 1.1.0.pre.2aycabta
2019-07-15Need reline-0.0.1 or later for some featuresaycabta
2019-07-15Suppress warningsMasataka Pocke Kuwabara
2019-07-06Fix showing document of ClassName.method_name in IRBaycabta
In IRB, Time.new is split as "Time", ".", and "new". The receiver "Time" is processed by #class method but it means that "Time" changes to "Class". This commit fixes it.
2019-07-03Check code_block_open for whether code continuesaycabta
2019-07-02Keyword token that follows EXPR_FNAME must be a method nameaycabta
2019-06-28Remove auto indent of continuation lineaycabta
2019-06-28Removed unused variableNobuyoshi Nakada
2019-06-27EXPR_LABEL also indicates non-continuation lineaycabta
Example: [ 1, # this is not continuation line 2 ]
2019-06-27bc mode is already removed [ci skip]Kazuhiro NISHIYAMA
2019-06-27EXPR_CMDARG also indicates the end of an expressionaycabta
2019-06-27Increase indent of continuation lineaycabta
v = 3 # auto indent
2019-06-26Decrease nesting level when closing token comes at a non-first token of lineaycabta
2019-06-26`ensure` is not a continuos lineNobuyoshi Nakada
2019-06-26Decrease indent at "elsif" tooNobuyoshi Nakada
2019-06-26Remove other debug printsNobuyoshi Nakada
2019-06-26Remove debug print...sorryaycabta
2019-06-25Treat auto indent with newline correctlyaycabta
2019-06-25Decrease indent when "else", "rescue", "ensure", "when", or "in" comeaycabta
2019-06-25Refactor calculation of corresponding token depthaycabta
2019-06-22Treat closing token with starting token at head of 2nd line correctlyaycabta
v = if true # starting token at head of 2nd line 3 end # closing token
2019-06-22Do auto indent only when closing token at first of lineaycabta
if true 3; end # this isn't auto-indented
2019-06-21Support irregular auto indentaycabta
v = if true 3 end # this "end" is auto-indented correctly
2019-06-19Use IRB.conf[:AUTO_INDENT] setting in multiline modeaycabta
2019-06-18Fix auto indent crash when blank inputaycabta
2019-06-18Implement auto indent for multilineaycabta
2019-06-16Implement line_no correctlyaycabta
2019-06-14Use Reline.prompt_proc in IRBaycabta
2019-06-13make sync-default-gems GEM=irbTakashi Kokubun
Upgrade IRB to https://github.com/ruby/irb/commit/41ea43a4a732e094acfa1b0fc1473fdcda9e6227 Mostly backport changes.
2019-06-12Ripper::Lexer: fallback parse error token to the previous oneNobuyoshi Nakada
2019-06-12Treat "begin rescue end" correctlyaycabta
2019-06-10irb/cmd/help.rb: return nil after the redefinitionNobuyoshi Nakada
2019-06-10irb: defer requiring rdoc to improve the start up timeNobuyoshi Nakada
2019-06-04Reflect behavior changes to argument nameTakashi Kokubun
0c459af7c233adb5f44022350bfe8fa132d8053e changed the meaning of `detect_compile_error`, and this commit lets it follow the change.
2019-06-04colorize_code must return escaped textTakashi Kokubun
This was needed before 0c459af7c233adb5f44022350bfe8fa132d8053e but it could be actually useless now. But I added this anyway just in case.
2019-06-04Colorize error charactersNobuyoshi Nakada
* lib/irb/color.rb (IRB::Color.scan): ignore "incomplete end of input" error only, to colorize invalid characters, e.g., control characters, and invalid symbols, as errors.
2019-05-31Bump irb version to 1.1.0.pre.1.Hiroshi SHIBATA
Becausee the current irb support reline and have many of changes.