tree-sitter / tree-sitter-python

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

fix: handle error recovery better for dedents in case a string start is possible #223

Closed amaanq closed 1 year ago

amaanq commented 1 year ago

I noticed this slight regression when running the tests in tree-sitter core - @maxbrunsfeld

This won't handle error recovery well for f-strings I think - which is what the inclusion of not dedenting in case string_start was valid was for anyways (they can be dedented and not count as a dedent)..

maxbrunsfeld commented 1 year ago

Thanks!