General

Profile

dimitri-lo2u (Dimitri Geshef)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

07/12/2013

07:25 PM Ruby Bug #8628: Parse error with method argument that is a Hash with a specific pattern
@nobu.
My apologies for this false alarm.
Thank you for pointing the grammatical ambiguity:
/=/ can be parsed as the /= operator followed by a regexp literal or the regexp literal /=/ itself.
Didn't realize this.
dimitri-lo2u (Dimitri Geshef)
03:55 PM Ruby Bug #8628: Parse error with method argument that is a Hash with a specific pattern
# Could also reproduce the problem with the regexp /,/
# In other words, this will also result in a parse error:
p /,/ => 'problematic too'
# /in comment/ => 'parse fails in this line'
dimitri-lo2u (Dimitri Geshef)
03:38 PM Ruby Bug #8628: Parse error with method argument that is a Hash with a specific pattern
The error message when you run the snippet in attachment is:
snippet.rb:9: syntax error, unexpected tIDENTIFIER, expecting $end
# /in comment/ => 'fails'
^
dimitri-lo2u (Dimitri Geshef)
03:35 PM Ruby Bug #8628: Parse error with method argument that is a Hash with a specific pattern
First detected in ruby 1.9.3p374 (2013-01-15) [i386-mingw32] dimitri-lo2u (Dimitri Geshef)
03:33 PM Ruby Bug #8628 (Rejected): Parse error with method argument that is a Hash with a specific pattern
# The next two lines cause a parse error
p /=/ => 'works'
# /in comment/ => 'fails'
# The reported error is:
# syntax error, unexpected ',', expecting $end
# /in comment/ => 'fails'
# ^
# The issue is caused by the ...
dimitri-lo2u (Dimitri Geshef)

01/13/2012

10:42 PM Ruby Bug #5892 (Rejected): REXML always wraps long tag text regardless the page width setting.
When ones prints a REXML document that contains a tag with a long text (with space chars), the REXML::Formatters::Pretty formatter will force a line wrapping at column 80.
If one changes the value of the width attribute of the formatter...
dimitri-lo2u (Dimitri Geshef)

Also available in: Atom