mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
injections(ecma): add injection for commented graphql template strings (#2987)
This commit is contained in:
parent
e4df4228b7
commit
b39840302c
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue