mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(ecma): inject properly based on "call_expression"
Also add a comment what the query does.
This commit is contained in:
parent
a6cc614409
commit
e3ebc8ec5d
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue