cc-tweaked / CC-Tweaked

Just another ComputerCraft fork
https://tweaked.cc
919 stars 212 forks source link

Goto statements (and line markers): `edit` highlighting #1653

Open fatboychummy opened 9 months ago

fatboychummy commented 9 months ago

This is purely visual, but it may be good to highlight goto statements (and potentially markers) in the builtin editor to make them stand out a bit more, as currently they just look like generic text.

image

SquidDev commented 9 months ago

This is a bit of an awkward one, as we probably don't want to syntax highlight goto when used as an identifier (e.g. local goto or goto()). We could probably do this with some basic lookahead, though the current syntax highlighter isn't exactly built for that.

Maybe possible to do at the same time as #1396.

Wojbie commented 9 months ago

At same time aren't identifiers goto just backward compatibility thing? Does it really warrant adding extra special handling for them?