mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
feat(groq): add parser and queries (#8008)
This commit is contained in:
parent
a5edb0a274
commit
61ec748ef7
7 changed files with 142 additions and 0 deletions
|
|
@ -48,6 +48,17 @@
|
|||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.include-children))
|
||||
|
||||
; Sanity CMS GROQ query
|
||||
; defineQuery(`...`)
|
||||
(call_expression
|
||||
function: (identifier) @_name
|
||||
(#eq? @_name "defineQuery")
|
||||
arguments: (arguments
|
||||
(template_string) @injection.content)
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "groq"))
|
||||
|
||||
(call_expression
|
||||
function: (identifier) @_name
|
||||
(#eq? @_name "gql")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue