fix(http): update injections queries (#7078)

This commit is contained in:
Seongmin Lee 2024-09-01 01:52:23 +09:00 committed by GitHub
parent 64cc1ef764
commit b33a34e883
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"))