Adds two more places where match is allowed to appear as an identifier:
Inside a dictionary splat pattern (e.g. def foo(**match): ...)
Inside a list splat pattern (e.g. *match, last = [1, 2, 3])
Since this meant match was now allowed in the same places as keyword_identifier, it seemed like a better solution to simply add match to the list of keyword identifiers, and clean up all of the previously added aliases. As a bonus, this means that (print:=5) etc. now also work as expected.
Adds two more places where
match
is allowed to appear as an identifier:def foo(**match): ...
)*match, last = [1, 2, 3]
)Since this meant
match
was now allowed in the same places askeyword_identifier
, it seemed like a better solution to simply addmatch
to the list of keyword identifiers, and clean up all of the previously added aliases. As a bonus, this means that(print:=5)
etc. now also work as expected.