mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Update 2024-08-21
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
; 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))
|
||||
([
|
||||
(string_literal)
|
||||
(raw_string_literal)
|
||||
] @sql
|
||||
(#match? @sql "(SELECT|select|INSERT|insert|UPDATE|update|DELETE|delete).+(FROM|from|INTO|into|VALUES|values|SET|set).*(WHERE|where|GROUP BY|group by)?")
|
||||
(#offset! @sql 1 0 0 0))
|
||||
|
||||
Reference in New Issue
Block a user