Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Anteru opened this issue Aug 31, 2019 · 2 comments
Closed

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

Anteru opened this issue Aug 31, 2019 · 2 comments
Labels
A-lexing area: changes to individual lexers good first issue Good for newcomers help wanted Community help appreciated! X-imported imported from Bitbucket

Comments

@Anteru
Copy link
Collaborator

Anteru commented Aug 31, 2019

(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;
})
@Anteru Anteru added T-bug type: a bug X-imported imported from Bitbucket S-major severity: major labels Aug 31, 2019
@Anteru Anteru added good first issue Good for newcomers help wanted Community help appreciated! A-lexing area: changes to individual lexers and removed T-bug type: a bug S-major severity: major labels Mar 5, 2021
@Anteru
Copy link
Collaborator Author

Anteru commented Mar 5, 2021

Reproduced 2021-03-05

@Anteru
Copy link
Collaborator Author

Anteru commented Mar 5, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lexing area: changes to individual lexers good first issue Good for newcomers help wanted Community help appreciated! X-imported imported from Bitbucket
Projects
None yet
Development

No branches or pull requests

1 participant