mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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)
|
||||
|
||||
(call_expression
|
||||
function: ((identifier) @_name
|
||||
(#eq? @_name "gql"))
|
||||
arguments: ((template_string) @graphql))
|
||||
function: ((identifier) @language)
|
||||
arguments: ((template_string) @content
|
||||
(#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