ruby/test/irb
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
..
test_color.rb Warn compile_error only when input is finished 2019-05-31 06:54:00 +09:00
test_completion.rb make sync-default-gems GEM=irb 2019-04-27 22:01:11 +09:00
test_context.rb context.rb: hide wrapping lines 2019-05-27 11:05:51 +09:00
test_init.rb Suppress read of ~/.irbrc 2018-08-18 04:09:48 +00:00
test_option.rb make sync-default-gems GEM=irb 2019-04-27 22:01:11 +09:00
test_raise_no_backtrace_exception.rb make sync-default-gems GEM=irb 2019-04-27 22:01:11 +09:00
test_workspace.rb Add "require 'irb'" to use IRB.conf 2019-05-21 09:24:09 +09:00