<br><br><div class="gmail_quote">On Fri, Nov 30, 2012 at 3:28 PM, Grant Rettke <span dir="ltr"><<a href="mailto:grettke@acm.org" target="_blank">grettke@acm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I would like thinks like #:default to be colored the same as #lang.<br>
This is "other" in the color settings.<br>
<br>
Is there a setting I may change to achieve this?<br>
<br></blockquote><div><br></div><div>I believe it might involve modifying the color lexer; it'd be somewhere in:</div><div><br></div><div> <a href="http://docs.racket-lang.org/syntax-color/index.html#(mod-path._syntax-color/scheme-lexer)">http://docs.racket-lang.org/syntax-color/index.html#(mod-path._syntax-color/scheme-lexer)</a></div>
<div><br></div><div><a href="http://git.racket-lang.org/plt/blob/HEAD:/collects/syntax-color/scheme-lexer.rkt#l318">http://git.racket-lang.org/plt/blob/HEAD:/collects/syntax-color/scheme-lexer.rkt#l318</a></div><div> </div>
<div>I'm reading the treatment for keywords correctly, the color lexer categorizes it as a paren. What?! Don't have time at the moment to look at this further, but it does look weird. I suspect it's just because the authors wanted keywords to take on the same color as parens, but I don't like overloading the parenthesis category to have that effect.</div>
<div><br></div><div>One the lexer has been modified, the next step would be to teach DrRacket to color keywords appropriately. I don't think it should be too difficult, but it does involve modifying DrRacket internals.</div>
<div><br></div><div><br></div><div>There may be an easier path to get what you want, but I don't see it at the moment.</div></div>