mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 14:52:04 +00:00
Update 24.01.2024
This commit is contained in:
8
queries/rust/injections.scm
Normal file
8
queries/rust/injections.scm
Normal file
@@ -0,0 +1,8 @@
|
||||
; 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))
|
||||
Reference in New Issue
Block a user