technically %t isn't a variable at the highest level of evaluation there, $calc() just has a special evaluation routine that's different to other identifiers which allows you to use %t that way

sure it wouldn't be hard at all to add this extra bit, but what about $eval($ $+ calc(1*(1+%x)),2) and such? you pretty much have to parse mircscript to get it 100% exact. but those cases are rare and not worth worrying about :X

but ye, highlighting inside $calc() might not be a bad idea, it could be handled as an exceptional case

"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde