1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Takashi Kokubun 13f58eccda
Always color Symbol as Yellow on IRB::Color
Symbol color was made blue as a workaround because it was hard to
distinguish `foo`s in `:foo` and `def foo; end` (both are :on_ident).
But I wanted to make it yellow like pry.

`:Struct` had the same problem in :on_const. Because the :on_const was
also blue (but underlined and bold), it was not a big issue.

While they're not so problematic since we got a workaround, we also had
a more serious issue for highlighting a symbol like `:"a#{b}c"`.
The first half was considered as Symbol and the last half was considered
as String, because the colorizer did not have a state like a parser.

To approach the last issue, I introduced `IRB::Color::SymbolState` which
is a thin state manager knowing only "the token is Symbol or not". Having
this module magically solves the first two problems as well. So now we
can highlight Symbol as yellow in the perfect manner.
2019-05-25 20:47:33 -07:00
..
-ext- Adjust indent 2019-05-10 22:00:22 +09:00
base64
benchmark
bigdecimal
cgi
coverage Introduce pattern matching [EXPERIMENTAL] 2019-04-17 06:48:03 +00:00
csv Import CSV 3.0.9 2019-04-15 02:05:03 +00:00
date date: support for Reiwa, new Japanese era 2019-04-09 01:27:36 +00:00
dbm
digest
drb ignore test_RangeError 2019-05-04 23:32:13 +09:00
dtrace
erb
etc
excludes Test GC.compact on MJIT again 2019-05-23 00:07:16 -07:00
fiddle
fileutils
gdbm
io
irb Always color Symbol as Yellow on IRB::Color 2019-05-25 20:47:33 -07:00
json
lib Make only mesg can be assigned with default fname 2019-04-29 13:42:50 +09:00
logger
matrix
minitest Use github url instead of ViewVC. 2019-04-22 20:00:32 +09:00
misc
mkmf
monitor
net
nkf
objspace
open-uri
openssl ext/openssl/ossl_bn.c (ossl_bn_initialize): get rid of SEGV 2019-04-10 12:57:39 +00:00
optparse Allow --enable/--disable options to take an argument 2019-05-15 17:31:11 +09:00
ostruct
pathname
psych
rdoc
readline Skip assertion in readline test if Readline version is 4.3 2019-05-22 21:32:31 -07:00
reline Support Meta key in Reline 2019-05-24 23:38:40 +09:00
resolv
rexml
rinda Add debug message for test_rinda crash 2019-04-07 08:18:09 +00:00
ripper require 'stringio' 2019-05-09 09:23:44 +09:00
rss
ruby test/ruby/test_rubyoptions.rb (test_script_from_stdin): scale timeout 2019-05-26 09:48:38 +09:00
rubygems Fix fd leak 2019-05-16 14:58:57 +09:00
scanf
sdbm
shell
socket
stringio
strscan
syslog
testunit Trim MJIT output from TestHideSkip 2019-05-08 17:30:15 +09:00
uri
webrick
win32ole Add one more retry for win32ole event matcher 2019-05-10 11:54:21 +09:00
yaml
zlib
colors
runner.rb
test_abbrev.rb
test_cmath.rb
test_delegate.rb delegate.rb: don't look for methods on Kernel 2019-05-13 11:29:42 +09:00
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb fix visibility of SecureRandom.gen_random 2019-05-14 11:44:20 +09:00
test_set.rb
test_shellwords.rb
test_singleton.rb
test_sync.rb
test_syslog.rb
test_tempfile.rb Windows simply causes an error to open invalid path 2019-05-01 17:38:45 +09:00
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb Pin weakmap references 2019-04-09 23:03:40 +00:00
test_win32api.rb