Issue #1357 new

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

Anonymous created an issue

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;
})

Comments (0)

  1. Log in to comment