mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
feat(javascript): add template string language injection
This commit is contained in:
parent
76a7000384
commit
39a2ea730d
1 changed files with 9 additions and 3 deletions
|
|
@ -3,6 +3,12 @@
|
||||||
((regex_pattern) @regex)
|
((regex_pattern) @regex)
|
||||||
|
|
||||||
(call_expression
|
(call_expression
|
||||||
function: ((identifier) @_name
|
function: ((identifier) @language)
|
||||||
(#eq? @_name "gql"))
|
arguments: ((template_string) @content
|
||||||
arguments: ((template_string) @graphql))
|
(#offset! @content 0 1 0 -1)))
|
||||||
|
|
||||||
|
(call_expression
|
||||||
|
function: ((identifier) @_name
|
||||||
|
(#eq? @_name "gql"))
|
||||||
|
arguments: ((template_string) @graphql
|
||||||
|
(#offset! @graphql 0 1 0 -1)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue