tree-sitter / tree-sitter-python

Python grammar for tree-sitter
MIT License
374 stars 138 forks source link

assert comparison with await func is parsed incorrectly #201

Closed mischab closed 1 year ago

mischab commented 1 year ago

Hey, when using await in an assert comparison the output from the parser is incorrect, see example:

assert await a(b) == c

resolves to: (module (assert_statement (await (comparison_operator (call function: (identifier) arguments: (argument_list (identifier))) (identifier)))))