mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(rst): disable spell for code blocks
injections(rst): add sourcecode directive
This commit is contained in:
parent
c6a81292f7
commit
90c44df8cb
2 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@
|
|||
name: (type) @_directive
|
||||
body: (body
|
||||
(content) @spell
|
||||
(#not-match? @_directive "code-block")
|
||||
(#not-any-of? @_directive "code" "code-block" "sourcecode")
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
((directive
|
||||
name: (type) @_type
|
||||
body: (body (arguments) @language (content) @content))
|
||||
(#any-of? @_type "code" "code-block"))
|
||||
(#any-of? @_type "code" "code-block" "sourcecode"))
|
||||
|
||||
((directive
|
||||
name: (type) @_type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue