aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb
Commit message (Collapse)AuthorAgeFilesLines
* Ignore history file without saving if permissions cannot be changedJeremy Evans2019-07-271-0/+2
| | | | Fixes [Ruby Bug 13907]
* Use JRuby equivalent of RubyVM.compile.Charles Oliver Nutter2019-07-271-1/+6
| | | | | RubyVM is specific to CRuby and not supported on JRuby. This is the equivalent operation.
* Some keywords, "true", "false", and "nil" should be treated as a variableaycabta2019-07-201-1/+1
|
* Fix showing doc of "nil.to_s", nil doesn't have #nameaycabta2019-07-191-1/+1
|
* Require Ruby 2.4 or later because needs lex_state from Ripperaycabta2019-07-151-0/+2
|
* Change PROMPT_S of simple-promptKazuhiro NISHIYAMA2019-07-151-1/+1
| | | | | | | | | | | | When input `"` or `/` with simple-prompt, Before: `"` or `/` (prompt disappeared and indent is changed) After: `"> "` or `/> /` (indent is unchanged since `>> `)
* Simplify history saving codeaycabta2019-07-151-8/+1
|
* Use #to_a for Readline::HISTORY directlyaycabta2019-07-151-1/+1
|
* Add lib/irb/color.rb to destribution file listaycabta2019-07-151-1/+1
|
* Remove debug printaycabta2019-07-151-1/+0
|
* Support multiline irb_historyaycabta2019-07-151-2/+18
| | | | | A history line ends with "\" to escape newline if it's a continuous line.
* Save history in IRB is enabled by defaultaycabta2019-07-151-1/+1
|
* Auto indent in IRB is enabled by defaultaycabta2019-07-152-5/+5
|
* Version 1.1.0.pre.2aycabta2019-07-151-2/+2
|
* Need reline-0.0.1 or later for some featuresaycabta2019-07-151-1/+1
|
* Suppress warningsMasataka Pocke Kuwabara2019-07-153-2/+6
|
* Fix showing document of ClassName.method_name in IRBaycabta2019-07-061-1/+1
| | | | | | 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.
* Check code_block_open for whether code continuesaycabta2019-07-031-2/+2
|
* Keyword token that follows EXPR_FNAME must be a method nameaycabta2019-07-021-3/+6
|
* Remove auto indent of continuation lineaycabta2019-06-281-3/+0
|
* Removed unused variableNobuyoshi Nakada2019-06-281-1/+1
|
* EXPR_LABEL also indicates non-continuation lineaycabta2019-06-271-1/+1
| | | | | | | | | Example: [ 1, # this is not continuation line 2 ]
* bc mode is already removed [ci skip]Kazuhiro NISHIYAMA2019-06-272-2/+2
|
* EXPR_CMDARG also indicates the end of an expressionaycabta2019-06-271-1/+1
|
* Increase indent of continuation lineaycabta2019-06-271-0/+3
| | | | | v = 3 # auto indent
* Decrease nesting level when closing token comes at a non-first token of lineaycabta2019-06-261-0/+2
|
* `ensure` is not a continuos lineNobuyoshi Nakada2019-06-261-1/+1
|
* Decrease indent at "elsif" tooNobuyoshi Nakada2019-06-261-2/+2
|
* Remove other debug printsNobuyoshi Nakada2019-06-261-3/+0
|
* Remove debug print...sorryaycabta2019-06-261-2/+0
|
* Treat auto indent with newline correctlyaycabta2019-06-251-10/+42
|
* Decrease indent when "else", "rescue", "ensure", "when", or "in" comeaycabta2019-06-251-0/+2
|
* Refactor calculation of corresponding token depthaycabta2019-06-251-18/+33
|
* Treat closing token with starting token at head of 2nd line correctlyaycabta2019-06-221-1/+1
| | | | | | | v = if true # starting token at head of 2nd line 3 end # closing token
* Do auto indent only when closing token at first of lineaycabta2019-06-221-4/+16
| | | | | if true 3; end # this isn't auto-indented
* Support irregular auto indentaycabta2019-06-211-8/+24
| | | | | | | v = if true 3 end # this "end" is auto-indented correctly
* Use IRB.conf[:AUTO_INDENT] setting in multiline modeaycabta2019-06-192-18/+21
|
* Fix auto indent crash when blank inputaycabta2019-06-181-1/+2
|
* Implement auto indent for multilineaycabta2019-06-182-2/+44
|
* Implement line_no correctlyaycabta2019-06-161-3/+3
|
* Use Reline.prompt_proc in IRBaycabta2019-06-142-6/+28
|
* make sync-default-gems GEM=irbTakashi Kokubun2019-06-133-29/+44
| | | | | | Upgrade IRB to https://github.com/ruby/irb/commit/41ea43a4a732e094acfa1b0fc1473fdcda9e6227 Mostly backport changes.
* Ripper::Lexer: fallback parse error token to the previous oneNobuyoshi Nakada2019-06-121-1/+1
|
* Treat "begin rescue end" correctlyaycabta2019-06-121-1/+1
|
* irb/cmd/help.rb: return nil after the redefinitionNobuyoshi Nakada2019-06-101-0/+1
|
* irb: defer requiring rdoc to improve the start up timeNobuyoshi Nakada2019-06-102-7/+10
|
* Reflect behavior changes to argument nameTakashi Kokubun2019-06-041-3/+3
| | | | | 0c459af7c233adb5f44022350bfe8fa132d8053e changed the meaning of `detect_compile_error`, and this commit lets it follow the change.
* colorize_code must return escaped textTakashi Kokubun2019-06-041-1/+3
| | | | | This was needed before 0c459af7c233adb5f44022350bfe8fa132d8053e but it could be actually useless now. But I added this anyway just in case.
* Colorize error charactersNobuyoshi Nakada2019-06-041-29/+15
| | | | | | * 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.
* Bump irb version to 1.1.0.pre.1.Hiroshi SHIBATA2019-05-311-2/+2
| | | | Becausee the current irb support reline and have many of changes.