1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
Takashi Kokubun 897901283c
Refactor IRB color dispatch
The reason why we were checking lexer state in addition to token was
that we do not want to colorize local variable, method call, etc., while
they share the :on_ident token with a name of method definition which
should be colored as blue.

It means that we're concerned about the lexer state only for :on_ident.
Thus we can skip checking lexer state for non-:on_ident tokens. This
refactoring is based on that idea.

Also, now we manage Ripper's lexer state as Integer (use `|` if you
need to check multiple states). It should be faster than using Array of
Integer because #any? block call is not needed.
2019-05-26 11:03:57 -07:00
..
bundler Merge Bundler 2.1.0.pre.1 as developed version from upstream. 2019-04-14 06:01:35 +00:00
cgi Use delete_prefix instead of sub(/\Afixed-pattern/, '') 2018-12-04 08:22:10 +00:00
csv Import CSV 3.0.8 2019-04-14 21:01:51 +00:00
drb * remove trailing spaces. 2019-05-04 19:29:14 +09:00
e2mmap Promote Exception2MessageMapper to Default gems. 2018-07-25 12:26:41 +00:00
fileutils Merge fileutils-1.2.0 from ruby/fileutils. 2019-03-27 08:26:09 +00:00
forwardable Disable tailcall optimization [Bug #15303] 2018-12-12 05:46:13 +00:00
irb Refactor IRB color dispatch 2019-05-26 11:03:57 -07:00
matrix lib/matrix: Use consistent style 2018-11-02 17:52:20 +00:00
net Support SNI (Reapplying r67488) 2019-04-15 10:52:34 +00:00
optparse Allow --enable/--disable options to take an argument 2019-05-15 17:31:11 +09:00
racc lib/racc/parser.rb: use require for racc/cparse 2018-11-03 08:43:19 +00:00
rdoc Show documents when completion 2019-05-25 03:30:01 +09:00
reline Fix indexes in comments of vi_insert.rb 2019-05-27 02:13:30 +09:00
rexml [DOC] Fix close tags [ci skip] 2019-01-04 09:10:10 +00:00
rinda lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
rss Upgrade RSS to 0.2.8 2019-01-25 06:35:04 +00:00
rubygems Update rubygems with latest upstream changes 2019-04-28 11:07:45 +09:00
shell Prefer block_given? to iterator? 2019-01-18 09:52:50 +00:00
thwait Add same comment to thwait.gemspec like other gemspec at r64145 2018-07-31 15:20:55 +00:00
tracer Try to load version file of github repository at first. 2018-07-31 12:56:17 +00:00
unicode_normalize update to Unicode Version 12.1.0 (beta) 2019-04-05 00:58:51 +00:00
uri lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
webrick Use cgit instead of svn. 2019-05-07 23:31:03 +09:00
yaml
.document lib/.document: add csv 2018-07-01 08:12:13 +00:00
abbrev.rb
base64.rb
benchmark.rb Work on Benchmark::Tms documentation [ci skip] 2018-09-15 12:45:46 +00:00
bundler.rb Merge Bundler 2.1.0.pre.1 as developed version from upstream. 2019-04-14 06:01:35 +00:00
cgi.rb
cmath.gemspec Removed needless date attribute from gemspec of default gems. 2018-08-07 12:02:10 +00:00
cmath.rb
csv.rb Import CSV 3.0.8 2019-04-14 21:01:51 +00:00
debug.rb
delegate.rb delegate.rb: don't look for methods on Kernel 2019-05-13 11:29:42 +09:00
drb.rb
e2mmap.gemspec Removed redundant empty line. 2018-11-28 00:48:21 +00:00
e2mmap.rb
English.rb
erb.rb erb.rb: prohibit marshaling [EXPERIMENTAL] 2019-03-28 03:46:48 +00:00
fileutils.rb Merge fileutils-1.2.0 from ruby/fileutils. 2019-03-27 08:26:09 +00:00
find.rb Use start_with?(quoted) instead of [0] == char literal 2019-05-08 11:16:23 +09:00
forwardable.rb [DOC] Refactors documentation for Forwardable 2019-01-20 04:38:52 +00:00
getoptlong.rb
ipaddr.gemspec Import ipaddr 1.2.2 2018-12-18 05:09:08 +00:00
ipaddr.rb Import ipaddr 1.2.2 2018-12-18 05:09:08 +00:00
irb.rb Use Reline as Reidline multiline editor in IRB 2019-05-25 02:16:19 +09:00
logger.gemspec default gems: add missing comment in gemspec 2018-10-12 19:58:11 +00:00
logger.rb Bump version to 1.3.0 same as the latest version of rubygems.org. 2018-12-12 09:40:06 +00:00
matrix.rb proc.c: proc without block 2019-01-10 08:19:14 +00:00
mkmf.rb Suppress paranoid warnings for external/3rd-party libraries 2019-05-23 17:36:26 +09:00
monitor.rb delete emacs mode lines [ci skip] 2018-12-27 06:12:09 +00:00
mutex_m.gemspec Try to load version file of github repository at first. 2018-07-31 12:56:17 +00:00
mutex_m.rb lib/mutex_m.rb: fix example code in documentation 2018-10-21 14:02:00 +00:00
observer.rb
open-uri.rb open-uri: clear string after buffering 2018-01-08 01:11:33 +00:00
open3.rb open3.rb don't use keyword splat (**). 2018-12-12 06:48:46 +00:00
optionparser.rb
optparse.rb Load OptionParser defaults from XDG and Haiku standards 2019-05-06 15:30:44 +09:00
ostruct.gemspec Promote OpenStruct to default gems. 2018-06-07 10:13:00 +00:00
ostruct.rb Removed old names of internal methods 2019-05-10 14:13:17 +09:00
pp.rb Introduce pattern matching [EXPERIMENTAL] 2019-04-17 06:48:03 +00:00
prettyprint.rb
prime.gemspec default gems: add missing comment in gemspec 2018-10-12 19:58:11 +00:00
prime.rb proc.c: proc without block 2019-01-10 08:19:14 +00:00
pstore.rb
rdoc.rb Merge rdoc-6.1.0.beta1. 2018-08-27 01:30:18 +00:00
readline.rb Add Reline as a fallback library for Readline 2019-04-30 11:44:20 +09:00
reline.rb Incremental syntax highlight for IRB source lines 2019-05-24 23:54:52 -07:00
resolv-replace.rb
resolv.rb resolv.rb: remove rangerand 2018-03-06 03:31:46 +00:00
rss.rb Upgrade RSS to 0.2.8 2019-01-25 06:35:04 +00:00
rubygems.rb Show documents when completion 2019-05-25 03:30:01 +09:00
scanf.gemspec Removed needless date attribute from gemspec of default gems. 2018-08-07 12:02:10 +00:00
scanf.rb
securerandom.rb fix visibility of SecureRandom.gen_random 2019-05-14 11:44:20 +09:00
set.rb raise FrozenError instead of RuntimeError 2019-01-20 04:44:25 +00:00
shell.rb Prefer block_given? to iterator? 2019-01-18 09:52:50 +00:00
shellwords.rb
singleton.rb
sync.gemspec Try to load version file of github repository at first. 2018-07-31 12:56:17 +00:00
sync.rb Bump library version same as released version of rubygems.org 2018-12-12 07:57:42 +00:00
tempfile.rb Enhance Tempfile docs [ci skip] 2018-12-16 12:09:08 +00:00
thwait.rb Removed needless extension for require. 2018-06-08 08:46:52 +00:00
time.rb Fix mday overflow 2019-01-06 04:36:56 +00:00
timeout.rb
tmpdir.rb tmpdir.rb: permission of user given directory 2019-01-23 06:06:47 +00:00
tracer.rb Replace outdated blockless proc call with block argument syntax 2019-02-07 17:29:16 +00:00
tsort.rb
un.rb Use delete_prefix instead of sub(/\Afixed-pattern/, '') 2018-12-04 08:22:10 +00:00
uri.rb Improve docs for URI library 2018-04-21 20:04:05 +00:00
weakref.rb
webrick.rb
yaml.rb Clarify the documentation of the YAML module [Misc #14567] 2018-03-02 12:56:37 +00:00