March 28, 2015 Re: Advise for syntax highlighting | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Friday, 27 March 2015 at 15:23:56 UTC, Jacob Carlborg wrote:
> On 2015-03-27 16:04, Dicebot wrote:
>
>> not at all. The fact it is reserved is already denoted by __, otherwise
>> it is just another vairable/symbol.
>
> Doesn't this symbol also have special semantics?
Not really. It has special value (true within ctfe, false in normal code generation) but otherwise it is just a normal variable.
|
March 28, 2015 Re: Advise for syntax highlighting | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | On 2015-03-28 01:01, Jesse Phillips wrote: > Statement [e.g. debug, return, function, with] (that needs fixed) Not sure what you mean. > Probably should be Identifier for consistency [e.g. _arugments, __vptr, > _ctor] I completely forgot about these. Should these be the same as __ctfe? > Which I guess is your third (special recognized built-in), though > __LINE__ is a constant in Vim's highlighting [e.g. null, __VERSION__]. Yeah, both null and __LINE__ are constants in TextMate as well. I probably didn't use the correct name for describing it. >> * __traits identifiers >> >> __traits(allMembers, Foo); >> >> In this case "allMembers". Basically the same question and >> alternatives as for the "__ctfe" variable. > > Identifier Same as __LINE__ or? -- /Jacob Carlborg |
March 28, 2015 Re: Advise for syntax highlighting | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | On Saturday, 28 March 2015 at 00:01:48 UTC, Jesse Phillips wrote:
> Probably should be Identifier for consistency [e.g. _arugments, __vptr, _ctor]
Isn't __ctor just a DMD thing? I don't think we should be highlighting symbols which aren't guaranteed to even exist for a particular implementation.
|
March 29, 2015 Re: Advise for syntax highlighting | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On 2015-03-27 11:34, Jacob Carlborg wrote: > I'm currently updating the TextMate D bundle for D2. I have a couple of > questions for how to highlighting some specific code or how other > editors/IDE's highlight them. What about #line? -- /Jacob Carlborg |
Copyright © 1999-2021 by the D Language Foundation