Skip to content

Path-qualified macros do not have any macro-related scopes #501

@detly

Description

@detly

Sublime Text Version### Sublime Text Version

Sublime Text 4 (Build 4142)

Rust Enhanced Version

v2.25.0

Operating system

Ubuntu 22.10, Gnome 43.0

Expected behavior

Macros should have a macro scope applied even if they're fully qualified.

Actual behavior

fn main() {
    std::todo!();
}

Scopes:

source.rust
meta.function.rust
meta.block.rust

Compare to the bare macro:

fn main() {
    todo!();
}
source.rust
meta.function.rust
meta.block.rust
support.macro.rust

Steps to reproduce

See code above.

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