mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
feat(haskell): injection for morpheus-graphql-client quasiquotes
This commit is contained in:
parent
02693ce64c
commit
0cca46a0c6
1 changed files with 11 additions and 0 deletions
|
|
@ -83,3 +83,14 @@
|
||||||
(#any-of? @_name "pymain" "pye" "py_" "pyf")
|
(#any-of? @_name "pymain" "pye" "py_" "pyf")
|
||||||
(quasiquote_body) @injection.content
|
(quasiquote_body) @injection.content
|
||||||
(#set! injection.language "python"))
|
(#set! injection.language "python"))
|
||||||
|
|
||||||
|
; -----------------------------------------------------------------------------
|
||||||
|
; GraphQL
|
||||||
|
; morpheus-graphql-client
|
||||||
|
(_
|
||||||
|
function: (apply
|
||||||
|
function: (variable) @_name)
|
||||||
|
argument: (quasiquote
|
||||||
|
body: (quasiquote_body) @injection.content)
|
||||||
|
(#set! injection.language "graphql")
|
||||||
|
(#eq? @_name "declareLocalTypesInline"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue