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

From: Mitchell <>
Date: Fri, 25 Jan 2019 14:09:08 -0500 (EST)

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.


> Thanks,
> Jonathan


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Fri 25 Jan 2019 - 14:09:08 EST

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