archives

« Bugzilla Issues Index

#2930 — 11.8.6 ambiguous definition for TemplateCharacter


11.8.6: It is not clear whether TemplateCharacter includes LineTerminatorSequence or not. The SourceCharacter RHS should be:

SourceCharacter but not one of ` or \ or $

instead of:

SourceCharacter but not one of ` or \ or $ or LineTerminatorSequence


"TemplateCharacter :: LineTerminatorSequence" is special cased for \r -> \n line separator normalization, therefore it is not a member of the more general "TemplateCharacter :: SourceCharacter but not ..." rule.

See TV and TRV of "TemplateCharacter :: LineTerminatorSequence" for the normalization steps.


moved the SourceCharacter rule to the end of the RHS list. Hopefully that will make it clearer.


in rev26 draft