Advise for syntax highlighting

Chris via Digitalmars-d digitalmars-d at puremagic.com
Fri Mar 27 07:03:08 PDT 2015


On Friday, 27 March 2015 at 13:58:03 UTC, Jacob Carlborg wrote:
> On 2015-03-27 13:33, Chris wrote:
>
>> Am using Textadept, the highlighting is as follows:
>>
>> highlighted as keyword:
>> this()
>
> Why is this highlighted as a keyword? I was more leaning to 
> highlight it as a method.

Well, it _is_ a keyword. You cannot write a function called 
"this", nor can you use it as a variable name. So yes, it's a 
keyword = reserved.

> What about the parameter in a copy constructor?
>
>> __traits
>
> What about the identifiers/keywords used as the first argument 
> to "__traits"?

Not highlighted.


More information about the Digitalmars-d mailing list