SoloVim/queries/rust/injections.scm
2024-01-24 21:28:12 +02:00

9 lines
212 B
Scheme

; Inject into sqlx::query!(r#"..."#, ...) as sql
(macro_invocation
(scoped_identifier
path: (identifier) @_path (#eq? @_path "sqlx"))
(token_tree
(raw_string_literal) @sql)
(#offset! @sql 1 0 0 0))