mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
fix(http): update injections queries (#7078)
This commit is contained in:
parent
64cc1ef764
commit
b33a34e883
1 changed files with 3 additions and 7 deletions
|
|
@ -13,16 +13,12 @@
|
||||||
(#set! injection.language "graphql"))
|
(#set! injection.language "graphql"))
|
||||||
|
|
||||||
; Script (default to javascript)
|
; Script (default to javascript)
|
||||||
((script) @injection.content
|
|
||||||
(#offset! @injection.content 0 2 0 -2)
|
|
||||||
(#set! injection.language "javascript"))
|
|
||||||
|
|
||||||
; Script with other languages
|
|
||||||
((comment
|
((comment
|
||||||
name: (_) @_name
|
name: (_) @_name
|
||||||
(#eq? @_name "lang")
|
(#eq? @_name "lang")
|
||||||
value: (_) @injection.language)
|
value: (_) @injection.language)?
|
||||||
.
|
.
|
||||||
(_
|
(_
|
||||||
(script) @injection.content
|
(script) @injection.content
|
||||||
(#offset! @injection.content 0 2 0 -2)))
|
(#offset! @injection.content 0 2 0 -2))
|
||||||
|
(#set! injection.language "javascript"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue