aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/ecma/injections.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/queries/ecma/injections.scm b/queries/ecma/injections.scm
index 52675d506..712c780ac 100644
--- a/queries/ecma/injections.scm
+++ b/queries/ecma/injections.scm
@@ -78,12 +78,13 @@
(regex_pattern) @regex
-((comment) @_gql_comment
- (#eq? @_gql_comment "/* GraphQL */")
- (template_string) @graphql)
+; ((comment) @_gql_comment
+; (#eq? @_gql_comment "/* GraphQL */")
+; (template_string) @graphql)
-(((template_string) @_template_string
- (#match? @_template_string "^`#graphql")) @graphql)
+((template_string) @graphql
+ (#lua-match? @graphql "^`#graphql")
+ (#offset! @graphql 0 1 0 -1))
; el.innerHTML = `<html>`
(assignment_expression