Skip to content

[CodeMirror] Incremental parse bug #148

@microbit-matt-hillsdon

Description

@microbit-matt-hillsdon

Delete/replace the colon after the last if True in the while. Notice the structural highlighting is broken for the last if/else.

Edit the last if/else and it fixes itself.

Needs minimising and a CodeMirror bug reporting (once we've checked we're on the latest).

# Add your Python code here. E.g.
from microbit import *


while True:
    display.scroll('Hello, World!')
    display.show(Image.HEART)
    sleep(2000)
    if True:
        pass
    if True:
        pass

if True:
    pass
    
if True:
    pass
else:
    pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions