mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02: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"))
|
||||
|
||||
; Script (default to javascript)
|
||||
((script) @injection.content
|
||||
(#offset! @injection.content 0 2 0 -2)
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
; Script with other languages
|
||||
((comment
|
||||
name: (_) @_name
|
||||
(#eq? @_name "lang")
|
||||
value: (_) @injection.language)
|
||||
value: (_) @injection.language)?
|
||||
.
|
||||
(_
|
||||
(script) @injection.content
|
||||
(#offset! @injection.content 0 2 0 -2)))
|
||||
(#offset! @injection.content 0 2 0 -2))
|
||||
(#set! injection.language "javascript"))
|
||||
|
|
Loading…
Reference in a new issue