Skip to content

emacs mode: ']', ')', and '}' close previous open paren/brace/bracket #10262

Closed

Description

Here is the illustrative example:

fn foo() {
    { bar('}'); }
    { bar(']'); }
    { bar(')'); }
}

The characters within ' characters above are incorrectly treated by src/etc/rust-mode.el as closing the opening paren of the invocation of bar. This confuses Emacs in a number of ways (e.g. obviously paren matching; but also the auto-indentation gets confused too, which is more annoying).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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