queries: fix some injections
This commit is contained in:
parent
435eddcf32
commit
7b6ac61fa9
1 changed files with 13 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
; for tree-sitter
|
; for tree-sitter
|
||||||
|
|
||||||
(
|
(
|
||||||
(text_block (raw_text) @injection.content)
|
(text_block . (raw_text) @injection.content)
|
||||||
(#set! injection.language "markdown")
|
(#set! injection.language "markdown")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -10,6 +10,16 @@
|
||||||
(raw_text) @injection.content
|
(raw_text) @injection.content
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(
|
||||||
|
(line_comment) @injection.content
|
||||||
|
(#set! @injection.language "comment")
|
||||||
|
)
|
||||||
|
(
|
||||||
|
(block_comment) @injection.content
|
||||||
|
(#set! @injection.language "comment")
|
||||||
|
)
|
||||||
|
|
||||||
|
;; -------------------------------------
|
||||||
;; overwrite for nvim-treesitter
|
;; overwrite for nvim-treesitter
|
||||||
; use markdown as default
|
; use markdown as default
|
||||||
(text_block . (raw_text) @markdown)
|
(text_block . (raw_text) @markdown)
|
||||||
|
@ -34,3 +44,5 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
(line_comment) @comment
|
(line_comment) @comment
|
||||||
|
(block_comment) @comment
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue