๐Ÿ“ฆ helix-editor / helix

๐Ÿ“„ injections.scm ยท 14 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14; inherits: rust

; HACK: This language is the same as Rust but all strings are injected
; with rust-format-args. Rust injects this into known macros which use
; the format args syntax. This can cause false-positive highlights but
; those are expected to be rare.

([
   (string_literal (string_content) @injection.content)
   (raw_string_literal (string_content) @injection.content)
 ]
 (#set! injection.language "rust-format-args")
 (#set! injection.include-children))