-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Vim plugin highlights single line comments nested within a multi line comment #12307
Comments
You're right. This isn't noticeable by default, since |
Similarly the construct |
Apparently |
Well, to clarify, it's unsolvable if you try and solve |
When I implemented comment nesting for Vim, I did it that way on purpose. It may have been misguided (I'm gently inclined to think it was, though still I think that differentiating nested comments is a convenient feature), but it was deliberate. |
New lint `const_is_empty` This lint detects calls to `.is_empty()` on an entity initialized from a string literal and flag them as suspicious. To avoid triggering on macros called from generated code, it checks that the `.is_empty()` receiver, the call itself and the initialization come from the same context. Fixes rust-lang#12307 changelog: [`const_is_empty`]: new lint
Something like this will highlight the
//github.com/mozilla/rust
part as if it were a single line comment.The text was updated successfully, but these errors were encountered: