Split out from https://github.com/microbit-foundation/python-editor-v3/issues/809.  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.