Skip to content

Highlight for Rust string interpolation macros #5845

@nikvoid

Description

@nikvoid

String literals in macros, which allow interpolation (println!, write!, panic!, etc.) could be highlighted similar to Python format strings.
image

Example for Rust (using injection of svelte):
image

Possible solution is to write small separate tree-sitter grammar for this case (maybe I will do that later...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions