Relaunch64 icon indicating copy to clipboard operation
Relaunch64 copied to clipboard

Can we have code greyed out when it commented by other commands

Open oziphantom opened this issue 10 years ago • 4 comments

For example .comment code code code .endc

all the code would be the grey colour like a normal comment?

Also something like .if 0 ?

TASS Mode.

oziphantom avatar Jan 08 '16 06:01 oziphantom

So .comment and .endc indicate a block comment and are correct assembler syntax or commands?

sjPlot avatar Jan 17 '16 13:01 sjPlot

Yes, in TASS64. Documented here http://tass64.sourceforge.net/#misc

oziphantom avatar Jan 17 '16 13:01 oziphantom

Does @soci64 probably know how to deal with this issue?

sjPlot avatar Mar 19 '16 13:03 sjPlot

I would think so.

The .comment one should be easy, if you have an internal state in the colour highlighting system, you can just add a force comment flag, which is incremented on .comment and then decremented on .endc

.if 0 is a little more complex and would need to do some form of expression parsing

oziphantom avatar Mar 20 '16 06:03 oziphantom