aboutsummaryrefslogtreecommitdiffstats
path: root/queries/rst
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2022-09-18 20:54:10 +0300
committerStephan Seitz <stephan.seitz@fau.de>2022-10-15 08:12:55 -0700
commit90c44df8cb9fcdd277694615f79f8e5e276c46ba (patch)
treefee9556a93c1e52e6be0313fd96bfef53d2ef595 /queries/rst
parenthighlights(dockerfile): add several highlights (diff)
downloadnvim-treesitter-90c44df8cb9fcdd277694615f79f8e5e276c46ba.tar
nvim-treesitter-90c44df8cb9fcdd277694615f79f8e5e276c46ba.tar.gz
nvim-treesitter-90c44df8cb9fcdd277694615f79f8e5e276c46ba.tar.bz2
nvim-treesitter-90c44df8cb9fcdd277694615f79f8e5e276c46ba.tar.lz
nvim-treesitter-90c44df8cb9fcdd277694615f79f8e5e276c46ba.tar.xz
nvim-treesitter-90c44df8cb9fcdd277694615f79f8e5e276c46ba.tar.zst
nvim-treesitter-90c44df8cb9fcdd277694615f79f8e5e276c46ba.zip
highlights(rst): disable spell for code blocks
injections(rst): add sourcecode directive
Diffstat (limited to 'queries/rst')
-rw-r--r--queries/rst/highlights.scm2
-rw-r--r--queries/rst/injections.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/queries/rst/highlights.scm b/queries/rst/highlights.scm
index 5fb228faa..1d83be067 100644
--- a/queries/rst/highlights.scm
+++ b/queries/rst/highlights.scm
@@ -164,7 +164,7 @@
name: (type) @_directive
body: (body
(content) @spell
- (#not-match? @_directive "code-block")
+ (#not-any-of? @_directive "code" "code-block" "sourcecode")
)
)
diff --git a/queries/rst/injections.scm b/queries/rst/injections.scm
index 1d576ef6a..97bd0628a 100644
--- a/queries/rst/injections.scm
+++ b/queries/rst/injections.scm
@@ -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