aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/ecma/injections.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/queries/ecma/injections.scm b/queries/ecma/injections.scm
index ef3b9ba72..bc5af1305 100644
--- a/queries/ecma/injections.scm
+++ b/queries/ecma/injections.scm
@@ -16,14 +16,14 @@
; svg`...` or svg(`...`), which uses the html parser, so is not included in the previous query
(call_expression
- function: ((identifier) @svg)
+ function: ((identifier) @_name (#eq? @_name "svg"))
arguments: [
(arguments
- (template_string) @content)
- (template_string) @content
+ (template_string) @html)
+ (template_string) @html
]
- (#offset! @content 0 1 0 -1)
- (#eq? @content "svg"))
+ (#offset! @html 0 1 0 -1))
+
(call_expression
function: ((identifier) @_name