[issue44010] IDLE: highlight new `match` / `case` syntax

2021-05-02 Thread Ken Jin
Ken Jin added the comment: Hi, I'm no IDLE expert, but I think moving the new soft keywords into kwlist seems wrong: Soft keywords were added in Python 3.9 when the PEG parser became the default. The keyword list was also updated accordingly

[issue44010] IDLE: highlight new `match` / `case` syntax

2021-05-02 Thread E. Paine
New submission from E. Paine : As-per PEP 634, structural pattern matching is now in Python. This introduces the `match` and `case` keywords. IDLE does not highlight these. The problem is that these are listed in `keyword.softkwlist` rather than `keyword.kwlist` (which is what IDLE uses).