[#73707] [Ruby trunk Misc#12004] Code of Conduct — hanmac@...
Issue #12004 has been updated by Hans Mackowiak.
3 messages
2016/02/05
[#73730] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/07
[#73746] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/09
[#73919] [Ruby trunk Feature#11262] Make more objects behave like "Functions" — Ruby-Lang@...
Issue #11262 has been updated by J旦rg W Mittag.
3 messages
2016/02/22
[#74019] [Ruby trunk Bug#12103][Rejected] ruby process hangs while executing regular expression. — duerst@...
Issue #12103 has been updated by Martin D端rst.
3 messages
2016/02/27
[ruby-core:73679] [Ruby trunk Bug#11914] 2.2.4: Parsing "symbol:%w(word)" gives SyntaxError
From:
usa@...
Date:
2016-02-03 10:50:18 UTC
List:
ruby-core #73679
Issue #11914 has been updated by Usaku NAKAMURA.
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE, 2.3: DONTNEED
----------------------------------------
Bug #11914: 2.2.4: Parsing "symbol:%w(word)" gives SyntaxError
https://bugs.ruby-lang.org/issues/11914#change-56874
* Author: Allen Fair
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin14]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE, 2.3: DONTNEED
----------------------------------------
This snippet does not parse correctly, only in ruby 2.2.4: {a:%w(a)}
Adding a space after the "a:" works.
irb(main):001:0> RUBY_VERSION
=> "2.2.4"
irb(main):002:0> {a:%w(a)}
SyntaxError: (irb):2: syntax error, unexpected '%'
{a:%w(a)}
^
(irb):2: syntax error, unexpected '}', expecting end-of-input
from /Users/allen/.rbenv/versions/2.2.4/bin/irb:11:in `<main>'
irb(main):003:0> {a: %w(a)}
=> {:a=>["a"]}
This works (without the space) in 2.2.3 and 2.3.0
Work-around: add the space after the colon.
My search failed to find an existing issue, but hope this isn't a repeat.
Thanks!
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>