Skip to content

IDE support in fn-like proc macro arguments #5265

Closed
@nitsky

Description

@nitsky

With support for fn-like proc macros as expressions becoming stable in rust 1.45 (rust-lang/rust#68717), I am opening this issue to track rust-analyzer support for language features within them.

For example, given the code below that uses a proc macro that implements jsx-like syntax...

let items = &["a", "b", "c"];
let html = html!(<ul>{items.iter().map(|item| html!(<li>{item}</li>))}</ul>);

... it would be awesome to be able to use "go to definition", "rename", "find references", etc when my cursor is over the last item identifier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionE-hardS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions