Skip to content

[Code structure] Indentation error messes up highlighting #589

Open
@microbit-carlos

Description

@microbit-carlos

Bug Description

When an indentation error is added to the code the code structure highlighting is not following the rest of the code correctly.

How To Reproduce

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

a = True
while a:
     display.scroll('micro:bit')
    display.show(Image.HEART)
    while a:
        display.scroll('micro:bit')
        while a:
            display.scroll('micro:bit')
            display.show(Image.HEART)
            sleep(2000)
        display.show(Image.HEART)
        sleep(2000)
    sleep(2000)

Steps to reproduce the behavior:

  1. Copy the code into the editor
  2. See error

Expected behavior

Code structure highlighting to correctly follow the code indentation

Screenshots

Screenshot2022_02_14_100958

Environment

  • OS: macOS 11
  • Browser: Chrome
  • Version: v98

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions