feat(javascript): add template string language injection

This commit is contained in:
Steven Sojka 2021-02-11 12:41:06 -06:00 committed by Stephan Seitz
parent 76a7000384
commit 39a2ea730d

View file

@ -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)))