Skip to content

rust-beginning-of-defun can not find real function #222

@Dushistov

Description

@Dushistov

As described in comment of kwrooijen/cargo.el#41 I have problem with rust-beginning-of-defun.

With rust code in literal string rust-beginning-of-defun works in wrong way:

fn test1() {
    let s = r#"
fn test2();
"#;<CURSOR_HERE>
}

M-x rust-beginning-of-defun jumps to test2 not to test1 as expected.

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