feat: add gql function highlighting for ecmascript injection

This commit is contained in:
ethanrutt 2026-02-27 08:35:43 -06:00 committed by Ethan Rutt
parent 6bc51d020a
commit affd543c1e

View file

@ -59,10 +59,15 @@
(#set! injection.include-children)
(#set! injection.language "groq"))
; gql`...` or gql(`...`)
(call_expression
function: (identifier) @_name
(#eq? @_name "gql")
arguments: (template_string) @injection.content
arguments: [
(arguments
(template_string) @injection.content)
(template_string) @injection.content
]
(#offset! @injection.content 0 1 0 -1)
(#set! injection.include-children)
(#set! injection.language "graphql"))