tree-sitter / tree-sitter-python

Python grammar for tree-sitter
MIT License
360 stars 132 forks source link

Allow the identifier `match` in more places #193

Closed tausbn closed 1 year ago

tausbn commented 1 year ago

Adds two more places where match is allowed to appear as an identifier:

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.