Re: Advise for syntax highlighting

2015-03-29 Thread Jacob Carlborg via Digitalmars-d
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

Re: Advise for syntax highlighting

2015-03-28 Thread Meta via Digitalmars-d
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

Re: Advise for syntax highlighting

2015-03-28 Thread Jacob Carlborg via Digitalmars-d
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

Re: Advise for syntax highlighting

2015-03-27 Thread Dicebot via Digitalmars-d
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

Re: Advise for syntax highlighting

2015-03-27 Thread Jesse Phillips via Digitalmars-d
Vim is setup as: On Friday, 27 March 2015 at 10:34:58 UTC, 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. * "this" in constructor this () {} Keywor

Re: Advise for syntax highlighting

2015-03-27 Thread Tobias Pankrath via Digitalmars-d
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? A more pragmatical view would be:

Re: Advise for syntax highlighting

2015-03-27 Thread Jacob Carlborg via Digitalmars-d
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? -- /Jacob Carlborg

Re: Advise for syntax highlighting

2015-03-27 Thread Dicebot via Digitalmars-d
Personal preferences: * "this" in constructor this () {} In TextMate functions/methods are highlighted, should this be highlighted as a keyword or as a method? method * "this" in copy constructor this (this) {} The "this" parameter, should that be highlighted as a keyword or as a param

Re: Advise for syntax highlighting

2015-03-27 Thread Jacob Carlborg via Digitalmars-d
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. What about the parameter in a copy constructor? __traits What about the identifiers/

Re: Advise for syntax highlighting

2015-03-27 Thread Chris via Digitalmars-d
On Friday, 27 March 2015 at 14:10:22 UTC, Jacob Carlborg wrote: On 2015-03-27 15:03, Chris wrote: 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. It depends on how you see it. It's also a special me

Re: Advise for syntax highlighting

2015-03-27 Thread Chris via Digitalmars-d
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 keywor

Re: Advise for syntax highlighting

2015-03-27 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-27 15:03, Chris wrote: 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. It depends on how you see it. It's also a special method that just happens to use a keyword as its name. It doesn't h

Re: Advise for syntax highlighting

2015-03-27 Thread Chris via Digitalmars-d
On Friday, 27 March 2015 at 10:34:58 UTC, 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. * "this" in constructor this () {} In TextMate functions/met

Advise for syntax highlighting

2015-03-27 Thread Jacob Carlborg via Digitalmars-d
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. * "this" in constructor this () {} In TextMate functions/methods are highlighted, should this be highlighted as a keyword or