Skip to content

Rust lexer chokes on #idents inside quote! macro #1061

@Anteru

Description

@Anteru

(Original issue 1357 created by None on 2017-06-18T14:22:25.731309+00:00)

Inside quote!( ... ) or quote!{ ... }, identifiers following an octothorpe (e.g. #my_var) should be highlighted.

Instead, it currently errors.

Examples:

let foo = "bar";
let bar = quote!(#foo);

Ok(quote! {
    let foo = #foo;
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lexingarea: changes to individual lexersX-importedimported from Bitbucketgood first issueGood for newcomershelp wantedCommunity help appreciated!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions