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

emacs mode indendation is wrong for string constants with backslashes #13568

Closed
nikomatsakis opened this issue Apr 16, 2014 · 4 comments
Closed

Comments

@nikomatsakis
Copy link
Contributor

the following code indents oddly:

pub fn foo() {
    format!("abc \
def")
}

I expect:

pub fn foo() {
    format!("abc \
             def")
}
@nikomatsakis
Copy link
Contributor Author

cc @pnkfelix

@huonw
Copy link
Member

huonw commented May 8, 2014

cc #8793

@shepmaster
Copy link
Member

This now fails with the ever-so-useful Scan error: "Unbalanced parentheses"

@steveklabnik
Copy link
Member

Moved to rust-lang/rust-mode#9

matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this issue Nov 16, 2022
…escaped-newlines, r=Veykril

Fix the length displayed for byte string literals with escaped newlines

This is a fix for the problem I reported earlier: "the length of byte strings containing escaped newlines is displayed two bytes longer when the first escaped character is a newline".

I would appreciate it if you could review the fix.
Many thanks.

Closes rust-lang#13567
flip1995 pushed a commit to flip1995/rust that referenced this issue Nov 7, 2024
Fix indentation of website code snippets

Fixes rust-lang#13568

Follow up to rust-lang#13359, I didn't catch that it swapped the `strip_prefix` out for a `trim` but they aren't interchangeable here

changelog: none
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

5 participants