Update 2024-08-21

This commit is contained in:
Kristofers Solo
2024-08-21 22:56:15 +03:00
parent 49ced08d78
commit 89989c222f
25 changed files with 271 additions and 142 deletions

View File

@@ -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))