Newline character set in the D lexer - NEL

Paul Backus snarwin at gmail.com
Mon Aug 31 12:27:00 UTC 2020


On Monday, 31 August 2020 at 09:39:12 UTC, Nils Lankila wrote:
> On Monday, 31 August 2020 at 01:49:06 UTC, Cecil Ward wrote:
>> Would there be any benefit from the following suggestion? Add 
>> the character Unicode NEL U+0085 into the set of EndOfLine 
>> characters in the lexer ?
>>
>> Cecil Ward.
>
> Pardon me but why bother while ascii gives already all we need 
> to put spaces and new lines with fast decode (< 80h) ?

D already recognizes some non-ascii characters as spaces and line 
separators [1], so the decision to "bother" has already been made.

[1] https://dlang.org/spec/lex.html#character_set


More information about the Digitalmars-d mailing list