Skip to content

[Code structure highlighting] Function bodies not highlighted when first statement is an assignment #1022

Open
@microbit-matt-hillsdon

Description

@microbit-matt-hillsdon

Split out from #809.

image

d, f, and g are incorrectly highlighted. It would be interesting to see what CodeMirror's parse tree is in this case.

This seems likely to arise in practice as initialising locals is common at the start of a function.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions