Regarding the proposed Binray Literals Deprecation

Quirin Schroll qs.il.paperinik at gmail.com
Mon Sep 12 13:00:17 UTC 2022


On Saturday, 10 September 2022 at 12:18:49 UTC, Paul Backus wrote:
> They add a new token to the grammar, which means that tools 
> like syntax highlighters have to be updated.
>
> Obviously it's not a difficult change to make, but there is 
> non-zero friction here.

In general yes, in this case (mostly) no. Most syntax 
highlighters use the fact that identifiers may not start with a 
digit. They interpret anything starting with a digit as a number 
up until a character that definitely isn’t part of a number like 
an operator or space. Even run.dlang.io does this. 
`03284FHKLLL.dfd.d..f_if` is highlighted as if it were a number.


More information about the Digitalmars-d mailing list