summaryrefslogtreecommitdiff
path: root/queries/rst
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-09-06 11:56:27 +0100
committerLewis Russell <me@lewisr.dev>2022-09-06 12:44:19 +0100
commit2a63ea5665a6de96acd31a045d9d4d73272ff5a9 (patch)
tree348be916a4d33581fd2703d88878dd33fd625741 /queries/rst
parent3e09c81b4c33bf14907b8a59025904d14c234b1e (diff)
feat(spell): upstream spell queries from spellsitter
Diffstat (limited to 'queries/rst')
-rw-r--r--queries/rst/highlights.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/queries/rst/highlights.scm b/queries/rst/highlights.scm
index 09389102..0e5c346b 100644
--- a/queries/rst/highlights.scm
+++ b/queries/rst/highlights.scm
@@ -158,6 +158,17 @@
(title) @text.title
(comment) @comment
+(comment) @spell
(comment "..") @comment
+(directive
+ name: (type) @_directive
+ body: (body
+ (content) @spell
+ (#not-match? @_directive "code-block")
+ )
+)
+
+(paragraph) @spell
+
(ERROR) @error