add custom injections nvim
This commit is contained in:
parent
824606b3b3
commit
7083ad0320
1 changed files with 20 additions and 0 deletions
20
nvim/.config/nvim/after/queries/javascript/injections.scm
Normal file
20
nvim/.config/nvim/after/queries/javascript/injections.scm
Normal 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)
|
||||||
|
)
|
Loading…
Reference in a new issue