Charles Oliver Nutter created JRUBY-6344:
--------------------------------------------

             Summary: Embedded \r should not be treated as end of comment line
                 Key: JRUBY-6344
                 URL: https://jira.codehaus.org/browse/JRUBY-6344
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.5
            Reporter: Charles Oliver Nutter
            Assignee: Thomas E Enebo
            Priority: Minor
         Attachments: grammar.kpeg.rb

In the attached file, there are double quotes around a bare \r character. On 
MRI, this becomes a normal string containing \r. On JRuby, we treat it as end 
of line and terminate the comment. The second double quote then starts another 
large string, which is never properly terminated.

The full code is generated by kpeg. I have trimmed it down to just what 
triggers the issue.

The exception that results is some form of SyntaxError, depending on the code 
that follows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.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