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
Improved Rust attributes #1813
Improved Rust attributes #1813
Conversation
Can you please add a test for this? There's a rust example file, it should be sufficient to add one line with an attribute like that there. |
You mean like that? Unfortunately I'm not familiar with pygments so I'm not exactly sure what I'm doing here... |
Yeah, adding it to the example file is sufficient, thanks! |
i just stumbled over this problem as well. as far as i can see, the diff needed to make the rust tests pass is
aka the |
Actually, why are we tracking |
For highlighting purposes it should indeed be sufficient to look at square brackets. |
That would be nice, and it will also reduce the number of individual tokens. |
Thanks! |
Rust attributes with nested brackets are currently not correctly highlighted.
For example, in
#[foo(bar = [baz, qux])]
the attribute is only highlighted until the first closing square bracket.
I think this should fixed with these changes.