tree-sitter-python
tree-sitter-python copied to clipboard
Fix: include comments at the end of blocks
Dedenting was happening too early for inline comments that were after an expression.
The indentation level for these comments was the number of space between the
expression and the #
instead of indentation of the expression.
Fixes https://github.com/tree-sitter/tree-sitter-python/issues/113
@maxbrunsfeld, ping ?
Rebase please @stsewd :slightly_smiling_face:
Since everything was migrated to C, I just opened a new PR instead of dealing with lots of merge conflicts, also I found a better solution https://github.com/tree-sitter/tree-sitter-python/pull/225.