mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -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)
|
text: (_) @text.literal)
|
||||||
(codeblock) @text.literal
|
(codeblock) @text.literal
|
||||||
(codeblock
|
(codeblock
|
||||||
">" @conceal (#set! conceal ""))
|
[">" (language)] @conceal (#set! conceal ""))
|
||||||
(block
|
(block
|
||||||
"<" @conceal (#set! conceal ""))
|
"<" @conceal (#set! conceal ""))
|
||||||
(argument) @parameter
|
(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