Skip to content

Conversation

johnwalker
Copy link
Contributor

I added single quotes to the Emacs syntax table as regular strings. This fixes behavior with single-stringified brackets messing up indentation. This fixes #10262.

Single quotes are now treated like strings, fixing
issues with stringy brackets.
@johnwalker
Copy link
Contributor Author

Peering back I see that dcrewi made an identical commit in #10190 and foresaw that this broke rust lifetimes. Ugh. Ignore this "fix."

Example code:

fn read_file_lines<'a>(path: &'a str) -> ~[~str] {
    let read_result = file_reader(~Path(path));
    match read_result {
        Ok(file) => file.read_lines(),
        Err(e) => fail!(fmt!("Error reading file: %?", e))
    }
}

@johnwalker johnwalker closed this Jan 2, 2014
flip1995 pushed a commit to flip1995/rust that referenced this pull request Aug 11, 2023
[`ptr_as_ptr`]: Take snippet instead of pretty printing type

Fixes rust-lang#11278

changelog: [`ptr_as_ptr`]: Include leading `super`s in suggestion
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 this pull request may close these issues.

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

2 participants