mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40: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
|
(comment) @comment
|
||||||
|
|
||||||
(call_expression
|
; html(`...`), sql(...) etc
|
||||||
|
(call_expression
|
||||||
function: ((identifier) @language)
|
function: ((identifier) @language)
|
||||||
arguments: ((template_string) @content
|
arguments: (arguments
|
||||||
(#offset! @content 0 1 0 -1)))
|
(template_string) @content
|
||||||
|
(#offset! @content 0 1 0 -1))
|
||||||
|
)
|
||||||
|
|
||||||
(call_expression
|
(call_expression
|
||||||
function: ((identifier) @_name
|
function: ((identifier) @_name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue