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

Incorrect highlighting of variables in Rust using captured identifiers in format strings #4269

Open
David-Else opened this issue Oct 14, 2022 · 1 comment
Labels
A-tree-sitter Area: Tree-sitter C-enhancement Category: Improvements upstream

Comments

@David-Else
Copy link
Contributor

David-Else commented Oct 14, 2022

Screenshot from 2022-10-14 10-13-36

https://blog.rust-lang.org/2022/01/13/Rust-1.58.0.html#captured-identifiers-in-format-strings

@David-Else David-Else added the C-enhancement Category: Improvements label Oct 14, 2022
@David-Else David-Else changed the title Incorrect highlighting of variables in Rust using modern println! features Incorrect highlighting of variables in Rust using captured identifiers in format strings Oct 14, 2022
@Chickenkeeper
Copy link
Contributor

AFAIK this is an upstream issue with tree-sitter-rust, as its grammar would need updating to support this. I asked about this same problem in the matrix forum a couple of weeks ago and after some investigation was pointed here: Support for format_args_capture feature #129. Unfortunately there's been no activity on it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tree-sitter Area: Tree-sitter C-enhancement Category: Improvements upstream
Projects
None yet
Development

No branches or pull requests

3 participants