Open microbit-matt-hillsdon opened 3 years ago
New blocks are generally invalid code at this point:
but it would be useful to highlight the indented part of the blank line to indicate where the new code should go.
There's probably enough information in the parse tree to do a good job of this. Worth a try at least.
We should perhaps just consider not trimming trailing whitespace down to the cursor when it’s clear the block isn’t complete (e.g. no trailing return/raise/continue/break). Needs some experimentation.
New blocks are generally invalid code at this point:
but it would be useful to highlight the indented part of the blank line to indicate where the new code should go.
There's probably enough information in the parse tree to do a good job of this. Worth a try at least.