aycabta
9306602f24
Replace typo "bock" with "block"
2019-11-20 09:58:33 +09:00
aycabta
19a310b0ac
A preceding token of "do" of block has EXPR_CMDARG or EXPR_ENDFN
...
meth do # the preceding token of "do" has EXPR_CMDARG
end
meth() do # the preceding token of "do" has EXPR_ENDFN
end
2019-11-20 09:56:13 +09:00
aycabta
49b4507fd3
Number sign comment (# bla bla) is a kind of newline character
2019-11-20 08:39:43 +09:00
aycabta
bc0da8e3ff
Generate history file path correctly when $HOME/.irbrc doesn't exist
2019-11-20 08:19:58 +09:00
aycabta
e7c5c60095
[ruby/irb] Remove ruby-token.rb from spec.files
...
0180dc74bc
2019-11-17 23:32:10 +09:00
aycabta
be95d59160
[ruby/irb] Version 1.1.0.pre.4
...
4945d0e676
2019-11-17 23:32:10 +09:00
aycabta
a5b6d7bca8
Suppress warnings except for when last evaluation
...
Co-authored-by: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
2019-11-13 15:15:28 +09:00
aycabta
45bb6f28db
Remove ruby-token.rb
2019-11-11 22:56:06 +09:00
Takashi Kokubun
fcd9bc28e3
qsymbols and symbols should be colored as Symbol
2019-11-10 13:54:44 -08:00
Takashi Kokubun
25c53a8eec
Colorize on_symbols_beg (%I)
2019-11-10 13:41:41 -08:00
Takashi Kokubun
b5996b25ae
Colorize string quotes as bold
...
like pry
2019-11-10 13:33:23 -08:00
zverok
4fe06f4667
IRB: Document command evaluation history.
2019-10-26 10:24:20 -07:00
Jeremy Evans
1fb4584825
Remove unsused output_method argument
...
Fixes Ruby Bug 9876.
2019-10-24 23:47:50 +09:00
Nobuyoshi Nakada
c01df7e58f
Fixed the key to delete [Bug #16250 ]
...
f94202fcc2 (commitcomment-35505076)
Co-Authored-By: Ary Borenszweig <asterite@gmail.com>
2019-10-15 23:16:24 +09:00
Nobuyoshi Nakada
f94202fcc2
Use compare_by_identity hash [Bug #16250 ]
2019-10-15 19:41:16 +09:00
Takashi Kokubun
c800967acd
Simplify circular reference check of IRB::Color
2019-10-14 21:58:13 -07:00
Ary Borenszweig
96617ad1d5
IRB colorize: take into account recursive arrays and hashes ( #2555 )
...
[Bug #16250 ]
2019-10-14 21:25:05 -07:00
Nobuyoshi Nakada
3bb1162cac
Folded files in gemspec
2019-09-16 21:51:48 +09:00
aycabta
e5dd63ba8c
IRB 1.1.0.pre.3
2019-09-01 11:23:58 +09:00
Nobuyoshi Nakada
a506b7f35a
Adjusted indents and supplied last commas
...
Fixed unmatched indent of the closing bracket for
`:irb_current_working_workspace`, and adjusted following elements.
2019-08-28 16:08:14 +09:00
Jeremy Evans
7d9c3a5712
Handle binding.irb for frozen objects and BasicObjects using a delegate
...
Fixes Ruby Bug 13264
2019-08-27 00:10:34 +09:00
Jeremy Evans
caeafbe825
Move private call without arguments inside method
...
This code did not have the desired effect. I'm not sure if
irb_binding is supposed to be private or not. If not, the private
call can just be removed.
2019-08-27 00:10:34 +09:00
aycabta
48fdc37ad5
IRB's multiline history is enable only when Reidline mode
2019-08-22 05:09:08 +09:00
aycabta
aa03de8ba1
Treat two types "do" correctly
...
A "do" what has followed a token what has EXPR_CMDARG is for a block,
and in other cases "do" is for "while", "until" or "for".
2019-08-20 08:31:02 +09:00
Steven Willis
9d2fed2ccd
Don't echo results of assignment expressions
2019-08-16 06:02:45 +09:00
aycabta
43b52ac0a5
Revert "Don't echo results of assignment expressions"
...
This reverts commit 1ee88c51b3
.
2019-08-06 20:28:48 +09:00
Steven Willis
1ee88c51b3
Don't echo results of assignment expressions
2019-08-06 20:15:07 +09:00
Jeremy Evans
a06301b103
Ignore history file without saving if permissions cannot be changed
...
Fixes [Ruby Bug 13907]
2019-07-27 16:56:04 +09:00
Charles Oliver Nutter
f9f02e8216
Use JRuby equivalent of RubyVM.compile.
...
RubyVM is specific to CRuby and not supported on JRuby. This is
the equivalent operation.
2019-07-27 16:56:04 +09:00
aycabta
de18328192
Some keywords, "true", "false", and "nil" should be treated as a variable
2019-07-20 02:53:47 +09:00
aycabta
c8ee44f44c
Fix showing doc of "nil.to_s", nil doesn't have #name
2019-07-19 08:23:41 +09:00
aycabta
c20445ab56
Require Ruby 2.4 or later because needs lex_state from Ripper
2019-07-15 17:22:18 +09:00
Kazuhiro NISHIYAMA
b789648830
Change PROMPT_S of simple-prompt
...
When input `"` or `/` with simple-prompt,
Before:
`"` or `/`
(prompt disappeared and indent is changed)
After:
`"> "` or `/> /`
(indent is unchanged since `>> `)
2019-07-15 10:29:48 +09:00
aycabta
0af897ab59
Simplify history saving code
2019-07-15 10:20:23 +09:00
aycabta
17ccda5413
Use #to_a for Readline::HISTORY directly
2019-07-15 08:33:07 +09:00
aycabta
2b78a93bcf
Add lib/irb/color.rb to destribution file list
2019-07-15 07:59:33 +09:00
aycabta
266f6cd8a1
Remove debug print
2019-07-15 07:54:47 +09:00
aycabta
4b7a04a5b8
Support multiline irb_history
...
A history line ends with "\" to escape newline if it's a continuous
line.
2019-07-15 07:51:57 +09:00
aycabta
078e50c5e9
Save history in IRB is enabled by default
2019-07-15 01:16:18 +09:00
aycabta
6d57369105
Auto indent in IRB is enabled by default
2019-07-15 01:07:37 +09:00
aycabta
82b058ff60
Version 1.1.0.pre.2
2019-07-15 00:43:47 +09:00
aycabta
d0b1a8d5fb
Need reline-0.0.1 or later for some features
2019-07-15 00:43:36 +09:00
Masataka Pocke Kuwabara
9806da50f4
Suppress warnings
2019-07-15 00:13:01 +09:00
aycabta
89e178c7cb
Fix showing document of ClassName.method_name in IRB
...
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-06 07:19:37 +09:00
aycabta
7b9bb6f44a
Check code_block_open for whether code continues
2019-07-03 23:37:46 +09:00
aycabta
776759e300
Keyword token that follows EXPR_FNAME must be a method name
2019-07-02 03:34:15 +09:00
aycabta
c718f56ed9
Remove auto indent of continuation line
2019-06-28 22:25:35 +09:00
Nobuyoshi Nakada
951f80f2dd
Removed unused variable
2019-06-28 14:09:26 +09:00
aycabta
2fd03fd7e6
EXPR_LABEL also indicates non-continuation line
...
Example:
[
1, # this is not continuation line
2
]
2019-06-27 16:03:43 +09:00
Kazuhiro NISHIYAMA
c86a9e6592
bc mode is already removed [ci skip]
2019-06-27 11:18:02 +09:00