mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
help: update queries
supports injections for codeblocks starting with, e.g., `>lua`
This commit is contained in:
parent
b8800111e2
commit
bf5ea2ea99
2 changed files with 4 additions and 1 deletions
|
|
@ -17,7 +17,7 @@
|
|||
text: (_) @text.literal)
|
||||
(codeblock) @text.literal
|
||||
(codeblock
|
||||
">" @conceal (#set! conceal ""))
|
||||
[">" (language)] @conceal (#set! conceal ""))
|
||||
(block
|
||||
"<" @conceal (#set! conceal ""))
|
||||
(argument) @parameter
|
||||
|
|
|
|||
3
queries/help/injections.scm
Normal file
3
queries/help/injections.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(codeblock
|
||||
(language) @language
|
||||
(code) @contents)
|
||||
Loading…
Add table
Add a link
Reference in a new issue