Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322083

Summary: Lexer matches print'(a)',' ...' incorrectly
Product: [Tools] PTP Reporter: Maarten Becker <Maarten.Becker>
Component: Photran.For Internal UseAssignee: Photran Inbox <photran-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P5 CC: com-eclipse-dot-org
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Maarten Becker CLA 2010-08-08 11:56:05 EDT
Build Identifier: 20100617-1415

The error appears if there is no blank between print statemtent and the format:

Example:
print'(a)',' Hello'

Error: Unexpected character constant ...


But print* (without blank) is working

Reproducible: Always
Comment 1 Jeffrey Overbey CLA 2011-03-17 12:44:28 EDT
Thanks for the bug report.

Internally, the problem seems to be that the lexer is matching the rule
    {Ident}?"'"
which is intended to match string literals with a kind, e.g.,
    ascii_'This is a string'

I don't see an immediate/easy way to fix this, but I'm keeping this open so we can come back to it later...