queries: fix some injections

This commit is contained in:
Dmitriy Pleshevskiy 2023-06-17 00:43:01 +03:00
parent 435eddcf32
commit 7b6ac61fa9
Signed by: pleshevskiy
GPG Key ID: 79C4487B44403985
1 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,7 @@
; for tree-sitter
(
(text_block (raw_text) @injection.content)
(text_block . (raw_text) @injection.content)
(#set! injection.language "markdown")
)
@ -10,6 +10,16 @@
(raw_text) @injection.content
)
(
(line_comment) @injection.content
(#set! @injection.language "comment")
)
(
(block_comment) @injection.content
(#set! @injection.language "comment")
)
;; -------------------------------------
;; overwrite for nvim-treesitter
; use markdown as default
(text_block . (raw_text) @markdown)
@ -34,3 +44,5 @@
)
(line_comment) @comment
(block_comment) @comment