highlights(rst): disable spell for code blocks

injections(rst): add sourcecode directive
This commit is contained in:
ObserverOfTime 2022-09-18 20:54:10 +03:00 committed by Stephan Seitz
parent c6a81292f7
commit 90c44df8cb
2 changed files with 2 additions and 2 deletions

View file

@ -164,7 +164,7 @@
name: (type) @_directive
body: (body
(content) @spell
(#not-match? @_directive "code-block")
(#not-any-of? @_directive "code" "code-block" "sourcecode")
)
)

View file

@ -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