I would like to have the ability to have more advanced ColorNode selectors. I’d like to be able to do this:

Exp._.keyword: 0 0 255 bold // to make keywords within Exp sorts blue and bold
.TemplateCall.identifier : red // to make only the identifiers in a templatecall red (and not the brackets and stuff too)
Exp.
id : blue // to make any identifier used within the context of an expression blue

Basically I’d like a kind of Xpath-style language to compose the node selectors and special selectors like “keyword”. Where a . could possibly mean immediate children and a space could mean “somewhere in the context of” (at arbitrary depth). Like you have li/a to select all a nodes that are direct children of li nodes and li//a to select all a nodes that are somewhere in the tree underneath a li node in Xpath.

Submitted by Zef Hemel on 19 March 2010 at 09:47

On 11 August 2010 at 13:48 Lennart Kats commented:

Related to this issue, it’s also a bit strange that the following syntax highlighting rules are illegal:


colorer Language-Colorer
Idx: yellow orange // gives syntax error
Idx: orange bold // gives syntax error


On 8 January 2013 at 16:40 Eelco Visser removed tag improvement

On 8 January 2013 at 16:40 Eelco Visser tagged feature

Log in to post comments