From 38f878a1cd98958f0766fcc410e01ab16d8b8fca Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Sat, 18 Mar 2023 22:12:27 +0200 Subject: [PATCH] fix: svg injection in ecma tagged literals --- queries/ecma/injections.scm | 10 +++++----- 1 file 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