1
0
Fork 0

treesitter: fix sql into rust injection

This commit is contained in:
Felipe 2023-11-21 00:10:12 -03:00
parent 5ed657277d
commit 4334999ca0
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

@ -5,6 +5,6 @@
name: (identifier) @name (#any-of? @name "query" "query_scalar" "query_as")
)
(token_tree (raw_string_literal) @sql)
(#offset! @sql 0 3 0 -2)
(token_tree (raw_string_literal) @injection.content (#offset! @injection.content 0 3 0 -2))
(#set! injection.language "sql")
)