-
Notifications
You must be signed in to change notification settings - Fork 105
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
Function arguments can get incorrectly appended to comments #47
Comments
Isn't this more or less the same as #46 or at least very related? It seems that it's probably the cause of this issue anyways. |
Looks like it's related but not the very same issue. Adding to this, consider the following example
I assume in this case, cmake-format (incorrectly) tries to join the string to the previous line, but this also results in the following exception:
Here's the full traceback: |
Fixed I believe in the upcoming release. If you're able, please try https://github.com/cheshirekow/cmake_format/releases/tag/v0.4.0rc1 and lte me know how it goes |
Yes, seems to maintain the semantics of the function call now. Thanks. |
When I run
cmake-format
on a code block like this:my_function( item1 # Some comment item2 )
cmake-format
gives me the following output:my_function(item1 # Some comment item2)
There should be a line break before
item2
.The text was updated successfully, but these errors were encountered: