Takashi Kokubun
6a5e89e23c
Set git config to commit mjit-debug
...
As it failed to commit like:
https://app.wercker.com/ruby/ruby/runs/mjit-test1/5cefd8a8105780001c4f2d5d?step=5cefdd1e48fad200077fa3f8
2019-05-31 07:24:11 +09:00
Takashi Kokubun
cb40a21da0
Warn compile_error only when input is finished
...
Let's say we are in progress to write `"foo"`:
```
irb> "fo
```
at this moment, nothing is wrong.
It would be just a normal way to write `"foo"`.
Prior to this commit, the `fo` part was warned because of
5b64d7ac6e
. But I think warning such a
normal input is not valuable for users.
However, we'd like to warn `:@1` or `@@1` which is also a syntax error.
Then this commit switches the syntax highlight based on whether the
input text is finished or not. When it's not finished yet, it does not
warn compile_error.
2019-05-31 06:54:00 +09:00
Takashi Kokubun
6e052817f9
Abstract away Ripper::Lexer#scan in IRB::Color#scan
...
because 5b64d7ac6e
made it hard to
understand #colorize_code for me and this change is needed for my next
commit.
2019-05-31 06:21:17 +09:00
aycabta
8f83fe3b02
Finish with ^D only when input is completely empty in vi insert mode
2019-05-31 05:53:02 +09:00
Benoit Daloze
a4161b7649
Update to ruby/spec@0ba5312
2019-05-30 22:11:24 +02:00
Benoit Daloze
e935a3227d
Update to ruby/mspec@3cc36d0
2019-05-30 22:11:22 +02:00
git
c55db6aa27
* 2019-05-31
2019-05-31 00:01:41 +09:00
Nobuyoshi Nakada
f7aa80b3fe
Make the target name unique when BASERUBY=no
2019-05-31 00:00:26 +09:00
Nobuyoshi Nakada
ab0c8cc021
Touch Unicode headers and the timestamp before packaging
...
Not to download Unicode data files at building from the packages.
2019-05-30 23:23:11 +09:00
Nobuyoshi Nakada
f0945176c3
Fix missing `gitcmd`
2019-05-30 22:27:11 +09:00
NARUSE, Yui
22cd402734
vcs.rb support non-inplace build
2019-05-30 22:20:28 +09:00
Nobuyoshi Nakada
92ecf58b1e
parse.y: adjust here-doc error token
...
* parse.y (here_document): adjust token to the here-doc identifier
in compile_error when a here-document misses the closing
identifier.
2019-05-30 22:03:33 +09:00
Nobuyoshi Nakada
b0e2b7a5ff
Include stack elements left after errors
2019-05-30 21:54:38 +09:00
aycabta
279c8e14d4
Use rebuilt buffer data to rerender all
2019-05-30 20:54:28 +09:00
aycabta
74a0e3ec23
Use start_with? for escaped quote too
2019-05-30 20:06:59 +09:00
aycabta
ecd0f1d966
Use negative lookahead and start_with?
2019-05-30 18:29:26 +09:00
aycabta
fcca39fa73
Fix strange vertical cursor moving when adding a newline at bottom
2019-05-30 18:21:09 +09:00
git
106843d839
* expand tabs.
2019-05-30 17:12:53 +09:00
Koichi Sasada
5fc9f0008f
reorder bitmap clearing.
2019-05-30 17:12:26 +09:00
Koichi Sasada
dd63d7da61
move pinned_bits[] position in struct heap_page.
...
pinned_bits are not used frequently (only GC.compact use it) so
move it at the end of struct heap_page.
2019-05-30 09:10:17 +01:00
Koichi Sasada
e15de86583
introduce `during_compacting` flag.
...
Usually PINNED_BITS are not needed (only for GC.compact need it)
so skip updating PINNED_BITS if the marking is not by GC.compact.
2019-05-30 16:52:42 +09:00
Takashi Kokubun
70e87d9660
Do not rely on IRB.conf[:MAIN_CONTEXT] before initialize
...
so that we can colorize binding.irb source lines.
2019-05-30 15:50:21 +09:00
aycabta
55c34b994b
Check the end token of heredoc correctly
2019-05-30 15:34:41 +09:00
aycabta
5a229b0a88
Calculate vertical position correctly when rerendering all lines
2019-05-30 15:19:30 +09:00
aycabta
90014dddec
Fix broken rendering when the last line is auto-wrapped
2019-05-30 15:04:37 +09:00
aycabta
eae953ba9f
Rerender following lines when line number increased
2019-05-30 14:19:58 +09:00
aycabta
1cf9f79342
Clear remaining lines when line number decreased
2019-05-30 14:04:28 +09:00
Nobuyoshi Nakada
4a31c1e45d
parse.y: continue after heredoc error
...
* parse.y: continue parsing the rest of the here-document starting
line, after the terminator was not found.
2019-05-30 12:38:50 +09:00
aycabta
cb520e7623
Fix the auto-wrap behabior that was too buggy
2019-05-30 12:29:38 +09:00
Jeremy Evans
f0ded36693
Use Regexp#match instead of #match for 1.9 BASERUBY support
2019-05-29 18:40:03 -07:00
Jeremy Evans
d2ba80b5df
Revert "Fix building with 1.8 BASERUBY"
...
This reverts commit 05bc14d81a
.
We have decided that the cost of reintroducing support for 1.8
BASERUBY outweighs the benefit. If you are still using 1.8 and want
to build master/trunk, build and install the latest release, and use
that as BASERUBY.
2019-05-29 18:03:21 -07:00
git
5867e51e83
* 2019-05-30
2019-05-30 04:13:37 +09:00
Takashi Kokubun
814eaa25e2
Do not use rb_iseq_path() while moving ISeq pointers
...
in GC.compact.
While `in_jit` is false, GC.compact is allowed to run and it may be
moving ISeq-related pointers. So calling rb_iseq_path() when `in_jit`
is true is illegal.
2019-05-30 04:12:11 +09:00
Nobuyoshi Nakada
5b64d7ac6e
Colorize errors more
...
* lib/irb/color.rb (IRB::Color.colorize_code): colorize
`compile_error` part as same as `on_parse_error`.
2019-05-29 22:09:54 +09:00
Nobuyoshi Nakada
12644e8b02
Get rid of nested string interpolations
...
* lib/irb/color.rb (IRB::Color.colorize): get rid of nesting string
interpolations not to confuse ruby-mode.el
2019-05-29 21:59:34 +09:00
Nobuyoshi Nakada
1da5c73932
parse.y: fix state after ivar/cvar
...
* parse.y (parse_atmark): return EXPR_END or EXPR_ENDFN, depending
on the previous state, even incomplete names consistently.
2019-05-29 21:42:58 +09:00
aycabta
83e905eb4e
Revert "Use "require" just for essential"
...
This reverts commit ab7a6e1a16
.
2019-05-29 20:24:00 +09:00
aycabta
ab7a6e1a16
Use "require" just for essential
...
The 559dca509d
contains an excess range in
using "require".
2019-05-29 20:21:00 +09:00
aycabta
fafcbe0eb0
Use reversed get_screen_size correctly on Windows
2019-05-29 18:52:34 +09:00
Nobuyoshi Nakada
5ceff480c2
ripper: Ripper::Lexer#scan
...
* ext/ripper/lib/ripper/lexer.rb (Ripper::Lexer#scan): parses the
code and returns the result elements including errors.
[EXPERIMENTAL]
2019-05-29 18:21:28 +09:00
Takashi Kokubun
7c0639f3f8
Never make a method call from MJIT worker
...
by showing line number only when it's Fixnum.
When it's not Fixnum, we need to call a method to know the line number.
2019-05-29 16:48:07 +09:00
Takashi Kokubun
ce7b1132c5
Do not call FIX2INT while GC.compact may be running
...
because FIX2INT might crash by moving method entry pointer:
http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2063412
2019-05-29 16:22:27 +09:00
Takashi Kokubun
468b475e61
.travis.yml: Minor reorder for shortening
2019-05-29 16:09:07 +09:00
Takashi Kokubun
1a0c3d8dd6
Convert Enumerator to Array for Ruby 1.9.3
...
String#lines seems to return Enumerator in Ruby 1.9.3, and it does not
respond to #delete_if https://travis-ci.org/ruby/ruby/jobs/538559919
2019-05-29 15:04:45 +09:00
Takashi Kokubun
5379ca9250
Skip spec broken since a66bc2c011
...
This has not worked since the merge https://travis-ci.org/ruby/ruby/jobs/538438184
2019-05-29 14:57:25 +09:00
Nobuyoshi Nakada
068d327595
Colorize compile_error as same as on_parse_error
2019-05-29 13:34:19 +09:00
Nobuyoshi Nakada
cc66272e50
parse.y: flush invalid char
2019-05-29 13:24:24 +09:00
Nobuyoshi Nakada
8552e9d696
Fix shorten-64-to-32 warning
2019-05-29 13:24:24 +09:00
Kazuhiro NISHIYAMA
aee36bf149
Fix Possible Control flow issues (DEADCODE)
...
Coverity Scan says `Execution cannot reach this statement: "poison_object(v);"`,
so do nothing when `ptr` is always 0 without address_sanitizer.
2019-05-29 13:16:05 +09:00
Yusuke Endoh
e04d10b28f
test/rubygems/test_gem_stream_ui.rb (test_ask_for_password): extend the timeout
...
for Solaris.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190528T191908Z.fail.html.gz
2019-05-29 13:01:53 +09:00