fix(ecma): inject properly based on "call_expression"

Also add a comment what the query does.
This commit is contained in:
Peter Lamby 2023-03-12 17:27:40 +01:00 committed by GitHub
parent a6cc614409
commit e3ebc8ec5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,10 +3,13 @@
(comment) @comment
(call_expression
; html(`...`), sql(...) etc
(call_expression
function: ((identifier) @language)
arguments: ((template_string) @content
(#offset! @content 0 1 0 -1)))
arguments: (arguments
(template_string) @content
(#offset! @content 0 1 0 -1))
)
(call_expression
function: ((identifier) @_name