From 995b75fd5129726c2ac922227944ab51871b05a5 Mon Sep 17 00:00:00 2001 From: Ethan Rutt <122636652+ethanrutt@users.noreply.github.com> Date: Sun, 1 Mar 2026 15:29:06 -0600 Subject: [PATCH] feat: add gql function highlighting for ecmascript injection (#8541) --- runtime/queries/ecma/injections.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runtime/queries/ecma/injections.scm b/runtime/queries/ecma/injections.scm index 669c7567..69afb6d4 100644 --- a/runtime/queries/ecma/injections.scm +++ b/runtime/queries/ecma/injections.scm @@ -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"))