SyntaxError with unexpected null when parsing single-quoted strings
-------------------------------------------------------------------

                 Key: JRUBY-3311
                 URL: http://jira.codehaus.org/browse/JRUBY-3311
             Project: JRuby
          Issue Type: Bug
          Components: Parser
    Affects Versions: JRuby 1.1.6
         Environment: Windows Vista Home Premium, JRE 1.6.0_11-b03
            Reporter: Snaury
            Assignee: Thomas E Enebo


The following code causes parser to die with error "unexpected null 
(SyntaxError)":

{code:title=1.rb}
puts '\\''
puts '\\\''
{code}

When similar line {{'\\'', '\\\''}} entered in irb, it complains with "Maybe 
IRB bug!!".

In comparison, MRI shows:

{code}
2.rb:2: syntax error, unexpected $undefined, expecting $end
puts '\\\''
       ^
{code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to