-
Notifications
You must be signed in to change notification settings - Fork 185
indentation misaligned due to where
in comment
#151
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
Interestingly, removing the |
It's got nothing to do with the |
>
in commentwhere
in comment
I changed the title of the issue to reflect the actual trigger...(title said it was due to the |
I'll fix this, I think I introduced this in b76e803. |
When looking for a `where` in `rust-rewind-to-beginning-of-current-level-expr`, check that is not part of a string or comment.
Always check whether we're not in a string or comment when looking for the `where` keyword. Use two helpers for this: `rust-looking-at-where` and `rust-rewind-to-where`.
thanks! 👍 |
This example indents as shown:
But I would expect:
Presumably the angle-bracket matching code is going a bit awry here.
cc @MicahChalmer
The text was updated successfully, but these errors were encountered: