Skip to content
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

rust-mode incorrectly highlights quotations #10904

Closed
ghost opened this issue Dec 10, 2013 · 1 comment
Closed

rust-mode incorrectly highlights quotations #10904

ghost opened this issue Dec 10, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 10, 2013

It seems that once emacs parses a '"' (that is, a double-quote character literal), in rust code it interprets this as the beginning of a string and highlights accordingly. This is very easy to spot, for example, in the file src/libextra/json.rs (which is where I discovered it).

@ghost ghost closed this as completed Dec 10, 2013
@ghost
Copy link
Author

ghost commented Dec 10, 2013

Sorry; this is a duplicate of #10190.

flip1995 pushed a commit to flip1995/rust that referenced this issue Jun 30, 2023
`suspicious_else_formatting`: Don't warn if there is a comment between else and curly bracket

This PR fixes rust-lang/rust-clippy#10273

The idea is that if the only thing after `else` and before `{` is a comment, we will not warn because, probably, the line break was "made" by rustfmt.

changelog: [`suspicious_else_formatting`]: Don't warn if the only thing between `else` and curly bracket is a comment
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants