Re: [code] [textadept] D lexer corrections.

From: Jonathan Levi <catanscout.att.gmail.com>
Date: Fri, 25 Jan 2019 14:00:34 -0600

The double dot ("..") is used in array slicing and the foreach loop.

a = b[1..3]; // The second and third indexes in a new array.
foreach(i ; 0..5) { // I will be 0,1,2,3,4

On Fri, Jan 25, 2019 at 1:09 PM Mitchell <m.att.foicica.com> wrote:

> Hi Jonathan,
>
> On Fri, 25 Jan 2019, Jonathan Levi wrote:
>
> > 1. Ds "Token String" is specifically designed so that IDEs will NOT
> format
> > it like a string. Everything in a token string is required to be a
> valid D
> > token so a basic lexer, like in Textadept, will format it right.
> >
> > 2. Unlike in C, the "l" (lower case "L") is not a valid suffix for
> numbers.
> >
> > 3. I am pretty sure ":" should be an operator (it is used as one in
> import
> > statements at least.
> >
> > 4. The ".." (two dots) should be and operator within numbers rather than
> a
> > decimal. I am guessing that this is beyond the basic lexer capabilities
> in
> > Textadept (it is beyond knowledge of it at least.
> >
> > I made the changes to fix 1-3. How would it be best to share those with
> > you?
>
> The file that you attached should be fine. When I have some time I'll take
> a look and commit the fixes. Thank you! I will also look into #4.
>
> Cheers,
> Mitchell
>
> >
> > Thanks,
> > Jonathan
> >
>
> Mitchell
> --
> You are subscribed to code.att.foicica.com.
> To change subscription settings, send an e-mail to code+help.att.foicica.com.
> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
>
>

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 25 Jan 2019 - 15:00:34 EST

This archive was generated by hypermail 2.2.0 : Sat 26 Jan 2019 - 06:27:17 EST