wookayin / semshi

🌈 Semantic Highlighting for Python in Neovim
79 stars 5 forks source link

Python 3.12 support: PEP-709 (inlined comprehension) #17

Closed wookayin closed 9 months ago

wookayin commented 11 months ago

New syntax in python 3.12. Part of #20.

noudin-ledger commented 10 months ago

Soon to be merged? I'd love that :purple_heart:

wookayin commented 9 months ago

Some follow-ups need to be done but merging for now, to make semshi work in a minimal viable manner with python3.12. Remaining: remove the assumption on the implementation details about AST syntax tree (e.g. inline comprehension is not inlined at the moment, but if it's inlined in future CPython versions it will break again).