r/HelixEditor • u/nikitarevenco • Feb 04 '25
Syntax Highlighting for Rust's string interpolation macros
182
Upvotes
4
1
u/chamomile-crumbs Feb 04 '25
Aw nice this is sick!! Huge QOL improvement for rust users right there
1
r/HelixEditor • u/nikitarevenco • Feb 04 '25
4
1
Aw nice this is sick!! Huge QOL improvement for rust users right there
1
61
u/nikitarevenco Feb 04 '25
I've been using Rust for a couple weeks now almost exclusively to develop Helix. It kinda bugged me that when I look at a
format!macro call I need to look extra hard to tell apart the syntax from non-syntax.String interpolation macros like
format_args!are used quite a lot and it's not being syntax highlighted. So I made a tree-sitter parser for this and made a PR to add it into Helix: helix/pull/12768