mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
feat: add gql function highlighting for ecmascript injection (#8541)
This commit is contained in:
@@ -59,10 +59,15 @@
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "groq"))
|
||||
|
||||
; gql`...` or gql(`...`)
|
||||
(call_expression
|
||||
function: (identifier) @_name
|
||||
(#eq? @_name "gql")
|
||||
arguments: (template_string) @injection.content
|
||||
arguments: [
|
||||
(arguments
|
||||
(template_string) @injection.content)
|
||||
(template_string) @injection.content
|
||||
]
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "graphql"))
|
||||
|
||||
Reference in New Issue
Block a user