archives

« Bugzilla Issues Index

#2027 — 11.8.6.1: TRV of LineContinuation also normalises escaped \r and \r\n to \n


Relevant entries from draft:

- The TRV of TemplateCharacter :: LineContinuation is the TRV of LineContinuation.
- The TRV of LineContinuation :: \ LineTerminatorSequence is the sequence consisting of the code unit value 0x005C followed by the code units of TRV of LineTerminatorSequence.
- The TRV of LineTerminatorSequence :: <CR> [lookahead  <LF> ] is the code unit value 0x000A
- The TRV of LineTerminatorSequence :: <CR><LF> is the sequence consisting of the code unit value 0x000A.

TRV of LineContinuation uses TRV of LineTerminatorSequence, but TRV of LineTerminatorSequence normalises line endings.


I'd suggest to add TV of LineTerminatorSequence to perform line ending normalisation and revert the changes for TRV of LineTerminatorSequence:

- The TV of TemplateCharacter :: LineTerminatorSequence is the TV of LineTerminatorSequence.
- The TRV of TemplateCharacter :: LineTerminatorSequence is the TV of LineTerminatorSequence.

- The TV of LineTerminatorSequence :: <LF> is the code unit value 0x000A.
- The TV of LineTerminatorSequence :: <CR> [lookahead  <LF> ] is the code unit value 0x000A.
- The TV of LineTerminatorSequence :: <LS> is the code unit value 0x2028.
- The TV of LineTerminatorSequence :: <PS> is the code unit value 0x2029.
- The TV of LineTerminatorSequence :: <CR><LF> is the sequence consisting of the code unit value 0x000A.

- The TRV of LineTerminatorSequence :: <LF> is the code unit value 0x000A.
- The TRV of LineTerminatorSequence :: <CR> [lookahead  <LF> ] is the code unit value 0x000D.
- The TRV of LineTerminatorSequence :: <LS> is the code unit value 0x2028.
- The TRV of LineTerminatorSequence :: <PS> is the code unit value 0x2029.
- The TRV of LineTerminatorSequence :: <CR><LF> is the sequence consisting of the code unit value 0x000D followed by the code unit value 0x000A.


Invalid -> misunderstanding on my part