[macruby-changes] [4630] DietRB/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Fri Oct 8 03:51:11 PDT 2010
Revision: 4630
http://trac.macosforge.org/projects/ruby/changeset/4630
Author: eloy.de.enige at gmail.com
Date: 2010-10-08 03:51:10 -0700 (Fri, 08 Oct 2010)
Log Message:
-----------
Remove a few Readline word break chars. that break Hash literals.
From: Eloy Duran <eloy.de.enige at gmail.com>
Modified Paths:
--------------
DietRB/trunk/lib/irb/ext/completion.rb
DietRB/trunk/spec/completion_spec.rb
Modified: DietRB/trunk/lib/irb/ext/completion.rb
===================================================================
--- DietRB/trunk/lib/irb/ext/completion.rb 2010-10-08 10:51:00 UTC (rev 4629)
+++ DietRB/trunk/lib/irb/ext/completion.rb 2010-10-08 10:51:10 UTC (rev 4630)
@@ -52,8 +52,10 @@
if defined?(Readline)
if Readline.respond_to?("basic_word_break_characters=")
- # IRB adds " and ' to the chars, but that would break string literals for us
- Readline.basic_word_break_characters= " \t\n`><=;|&{("
+ # IRB adds a few breaking chars. that would break literals for us:
+ # * String: " and '
+ # * Hash: = and >
+ Readline.basic_word_break_characters= " \t\n`<;|&("
end
Readline.completion_proc = IRB::Completion
end
\ No newline at end of file
Modified: DietRB/trunk/spec/completion_spec.rb
===================================================================
--- DietRB/trunk/spec/completion_spec.rb 2010-10-08 10:51:00 UTC (rev 4629)
+++ DietRB/trunk/spec/completion_spec.rb 2010-10-08 10:51:10 UTC (rev 4630)
@@ -19,6 +19,7 @@
end
end
+
describe "IRB::Completion, returns all instance methods if the source ends with a period and" do
extend CompletionHelper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101008/fd3b5ca4/attachment.html>
More information about the macruby-changes
mailing list