Skip to content

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

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

Closed
steveklabnik opened this issue Feb 2, 2015 · 0 comments · Fixed by #2
Closed

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

steveklabnik opened this issue Feb 2, 2015 · 0 comments · Fixed by #2

Comments

@steveklabnik
Copy link
Member

Issue by pnkfelix
Monday Nov 04, 2013 at 15:42 GMT

For earlier discussion, see rust-lang/rust#10262

This issue was labelled with: A-tools in the Rust repository


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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant