tree-sitter-python icon indicating copy to clipboard operation
tree-sitter-python copied to clipboard

Fix: include comments at the end of blocks

Open stsewd opened this issue 2 years ago • 1 comments

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

stsewd avatar Dec 19 '21 22:12 stsewd

@maxbrunsfeld, ping ?

calixteman avatar Jan 13 '22 18:01 calixteman

Rebase please @stsewd :slightly_smiling_face:

amaanq avatar Jul 10 '23 21:07 amaanq

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.

stsewd avatar Jul 11 '23 03:07 stsewd