mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
Haskell injection: support inline json
Support for inline json using the quasiquoter `aesonQQ`: https://github.com/sol/aeson-qq#readme
This commit is contained in:
parent
f3c53d225a
commit
3993d90a52
1 changed files with 10 additions and 0 deletions
|
|
@ -56,3 +56,13 @@
|
||||||
(#eq? @_name "hsx")
|
(#eq? @_name "hsx")
|
||||||
((quasiquote_body) @html)
|
((quasiquote_body) @html)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
;; -----------------------------------------------------------------------------
|
||||||
|
;; Inline JSON from aeson
|
||||||
|
|
||||||
|
(quasiquote
|
||||||
|
(quoter) @_name
|
||||||
|
(#eq? @_quoter "aesonQQ")
|
||||||
|
((quasiquote_body) @json)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue