add custom injections nvim

This commit is contained in:
bain 2024-07-04 00:04:19 +02:00
parent 824606b3b3
commit 7083ad0320

View file

@ -0,0 +1,20 @@
; extends
(
[
(template_string)
] @injection.content
(#match? @injection.content "(SELECT|INSERT|UPDATE|DELETE|CREATE).+(FROM|INTO|VALUES|SET|TABLE).*(WHERE|GROUP BY)?")
(#offset! @injection.content 0 1 0 -1)
(#set! injection.language "sql")
(#set! injection.include-children)
)
(
[
(string_fragment)
] @injection.content
(#match? @injection.content "(SELECT|INSERT|UPDATE|DELETE|CREATE).+(FROM|INTO|VALUES|SET|TABLE).*(WHERE|GROUP BY)?")
(#set! injection.language "sql")
(#set! injection.include-children)
)