injections(ecma): add injection for commented graphql template strings (#2987)

This commit is contained in:
Jackson Ludwig 2022-06-05 05:50:48 -04:00 committed by GitHub
parent e4df4228b7
commit b39840302c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,3 +56,10 @@
(#offset! @css 0 1 0 -1)))
(regex_pattern) @regex
((comment) @_gql_comment
(#eq? @_gql_comment "/* GraphQL */")
(template_string) @graphql)
(((template_string) @_template_string
(#match? @_template_string "^`#graphql")) @graphql)