mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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"))
|
||||
|
||||
; 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…
Add table
Add a link
Reference in a new issue