-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix comments behavior on multiple lines with indentation #86 #87
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if I'm reading correctly this breaks the following:
hello
world
hello
(select all and :comment
)
You right ! I'll try to fix that. |
It should be fine now. Let me know if you see something or have any comments. |
Hi @asottile, I tried to fix the behaviour with tabs indentation, should be correct now. That's the reason why the code coverage failed in the last check. |
babi renders tabs as spaces so the expected output should be indentation with spaces (you can save the file and validate the contents to check that tabs are preserved) |
Ok ! |
Hi @asottile, I modified the way the comments was implemented before. |
ah yeah that bit of coverage output is confusing if you haven't seen it before:
this means that the code never branches from like 709 to line 714 in this case I think it means that one of those I think |
Thanks. |
I fixed up a few things, it was handling this incorrectly: # foo print('# bar') it was stripping both of the I also simplified |
Thanks man ! I'll check your modification to see what I did the wrong way. Happy to help ! |
I tried to improve the comments behaviour on multiple lines, with indentation. Let me know what you think.