helix icon indicating copy to clipboard operation
helix copied to clipboard

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

Open David-Else opened this issue 3 years ago • 1 comments

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 avatar Oct 14 '22 09:10 David-Else

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.

Chickenkeeper avatar Oct 14 '22 13:10 Chickenkeeper