jakartaee / expression-language

Jakarta Expression Language
https://eclipse.org/ee4j/el
Other
68 stars 49 forks source link

Production for StringLiteral is not consistent with comments #10

Closed glassfishrobot closed 11 years ago

glassfishrobot commented 14 years ago

The current production for StringLiteral does not allow for the use single quotes inside double quotes, and vice versa, with escaping.

I suggest changing the production for StringLiteral to the following: StringLiteral ::= '([^']|\'|\"| )*'

| "([^�] | \' | \� | )*" |

an alternative form that may be clearer would be: StringLiteral ::= '([^']|(['"]))*'

| "([^�] | (['"]))*" |

Environment

Operating System: All Platform: All

Affected Versions

[current]

glassfishrobot commented 6 years ago
glassfishrobot commented 14 years ago

@glassfishrobot Commented Reported by markt_asf

glassfishrobot commented 11 years ago

@glassfishrobot Commented kchung said: The grammar in the spec has been replaced by the RI's JAVACC grammar in EL 3.0, which does not seem to have this problem.

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA UEL-10

glassfishrobot commented 11 years ago

@glassfishrobot Commented Marked as fixed on Friday, March 15th 2013, 11:34:23 am