Highlight for Rust string interpolation macros #5845
Labels
A-language-support
Area: Support for programming/text languages
C-enhancement
Category: Improvements
upstream
String literals in macros, which allow interpolation (println!, write!, panic!, etc.) could be highlighted similar to Python format strings.
![image](https://user-images.githubusercontent.com/77514082/216982006-7d63c991-750a-43ed-8b4e-b7517b914c30.png)
Example for Rust (using injection of svelte):
![image](https://user-images.githubusercontent.com/77514082/216982245-e72a42a5-3039-4a8f-818c-0227158d1257.png)
Possible solution is to write small separate tree-sitter grammar for this case (maybe I will do that later...)
The text was updated successfully, but these errors were encountered: