More advanced ColorNode selectors
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 blueBasically 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
Submitted by Zef Hemel on 19 March 2010 at 09:47li/a
to select alla
nodes that are direct children ofli
nodes andli//a
to select alla
nodes that are somewhere in the tree underneath ali
node in Xpath.
Issue Log
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
Log in to post comments