MagicPython
MagicPython copied to clipboard
support python 3.12 type alias syntax
python 3.12 introduced new syntax for type aliases:
type Foo = int
this is currently highlighted incorrectly:
(the type keyword should be blue and the Foo name should be green)
related: #262
as a workaround, i've fixed this with semantic highlighting in basedpyright:
though i'm not sure how to make it blue (or if it even should be blue). https://github.com/DetachHead/basedpyright/issues/147