treesitter: fix sql into rust injection
This commit is contained in:
parent
5ed657277d
commit
4334999ca0
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue