-
Notifications
You must be signed in to change notification settings - Fork 70
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
Comments inside function calls are moved to the end #562
Comments
right now comments like this are assumed to be "inline comments" so they're appended. It's just a simpler implementation atm. Printing this out right might not actually be that tricky though. |
should the #= comment =# length be factored into the maximum margin or not? I'm leaning towards no since it's not actually code |
I would say yes, I don't consider character limits to only apply to code. Are trailing comments not counted towards the limit? |
they are not
there's also a case to be made there's far less control over how a comment can be broken over multiple lines vs. code If the comment is not trailing then I think there's a case for considering the length, it could go either way. |
I would want it to become
|
But to get back to the original issue, I think it would be fine if it counted for non-trailing comments and the result was
without touching/breaking up the comment (i.e. if the comment line alone would be over the limit that would be allowed). |
that makes sense it could be treated similar to a multiline string |
Not sure if this is a conscious choice, or a bug:
The text was updated successfully, but these errors were encountered: