1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-28 01:10:05 +08:00
SpaceVim/bundle/nvim-treesitter/queries/haskell/injections.scm

59 lines
1.2 KiB
Scheme
Raw Normal View History

;; -----------------------------------------------------------------------------
;; General language injection
(quasiquote
((quoter) @language)
((quasiquote_body) @content)
)
(comment) @comment
;; -----------------------------------------------------------------------------
;; shakespeare library
;; NOTE: doesn't support templating
; TODO: add once CoffeeScript parser is added
; ; CoffeeScript: Text.Coffee
; (quasiquote
; (quoter) @_name
; (#eq? @_name "coffee")
; ((quasiquote_body) @coffeescript)
; CSS: Text.Cassius, Text.Lucius
(quasiquote
(quoter) @_name
(#any-of? @_name "cassius" "lucius")
((quasiquote_body) @css)
)
; HTML: Text.Hamlet
(quasiquote
(quoter) @_name
(#any-of? @_name "shamlet" "xshamlet" "hamlet" "xhamlet" "ihamlet")
((quasiquote_body) @html)
)
; JS: Text.Julius
(quasiquote
(quoter) @_name
(#any-of? @_name "js" "julius")
((quasiquote_body) @javascript)
)
; TS: Text.TypeScript
(quasiquote
(quoter) @_name
(#any-of? @_name "tsc" "tscJSX")
((quasiquote_body) @typescript)
)
;; -----------------------------------------------------------------------------
;; HSX
(quasiquote
(quoter) @_name
(#eq? @_name "hsx")
((quasiquote_body) @html)
)