Skip to content

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

Closed

Description

@nikomatsakis

the following code indents oddly:

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

I expect:

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

Activity

  1. nikomatsakis commented on Apr 17, 2014

    @nikomatsakis
    ContributorAuthor
  2. huonw commented on May 8, 2014

    @huonw
    Contributor
  3. shepmaster commented on Dec 28, 2014

    @shepmaster
    Member

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

  4. steveklabnik commented on Feb 2, 2015

    @steveklabnik
    Contributor
  5. added a commit that references this issue on Nov 16, 2022
  6. added a commit that references this issue on Nov 7, 2024
    3caff99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions