[plt-scheme] Highlighting parentheses.
On Nov 30, 2007 12:40 PM, Robby Findler <robby at cs.uchicago.edu> wrote:
> Two more, seasonal varieties:
> (spring needs work).
> Robby
Oh, I don't know. Spring looks OK to me.
I will say that while I'm not sure I'd necessarily edit my code this
way, I'd certainly love it if this was the default highlight mode for
a syntax error that was suspected to be due to mismatched/missing
parentheses. It would make visual inspection of where the paren might
have gone walking (or an extra added) far simpler.
Actually, to that end, there are many syntax errors in Scheme that, at
some level, have to do with the misplacement of parentheses.
Accidentally closing off a the list of parameters to a function before
you should and catching it in an outer expression (a 'let' or similar)
is one I've seen many times. Having the per-expression highlighting at
that point makes it much easier to say "Oh, I closed those off too
soon/too late..."
At least, I can imagine it being useful at syntax-error time. Perhaps not.
Cheers,
Matt