aboutsummaryrefslogtreecommitdiffstats
path: root/queries/rst
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2023-01-21 23:15:15 +0200
committerStephan Seitz <stephan.seitz@fau.de>2023-01-22 14:11:45 +0100
commit7bef1d53302f1087a07f83a4321582d835f44d4f (patch)
treeb28fd6d99cb4d3a0b5a5068d8d809fccb68bc45a /queries/rst
parentUpdate README (diff)
downloadnvim-treesitter-7bef1d53302f1087a07f83a4321582d835f44d4f.tar
nvim-treesitter-7bef1d53302f1087a07f83a4321582d835f44d4f.tar.gz
nvim-treesitter-7bef1d53302f1087a07f83a4321582d835f44d4f.tar.bz2
nvim-treesitter-7bef1d53302f1087a07f83a4321582d835f44d4f.tar.lz
nvim-treesitter-7bef1d53302f1087a07f83a4321582d835f44d4f.tar.xz
nvim-treesitter-7bef1d53302f1087a07f83a4321582d835f44d4f.tar.zst
nvim-treesitter-7bef1d53302f1087a07f83a4321582d835f44d4f.zip
highlights(rst): don't spell check links
Diffstat (limited to 'queries/rst')
-rw-r--r--queries/rst/highlights.scm8
1 files changed, 3 insertions, 5 deletions
diff --git a/queries/rst/highlights.scm b/queries/rst/highlights.scm
index 1d83be067..759087130 100644
--- a/queries/rst/highlights.scm
+++ b/queries/rst/highlights.scm
@@ -82,7 +82,7 @@
(strong) @text.strong
-(standalone_hyperlink) @text.uri
+(standalone_hyperlink) @text.uri @nospell
(role) @function
@@ -151,7 +151,7 @@
(footnote_reference)
(citation_reference)
(reference)
-] @text.reference
+] @text.reference @nospell
;; Others
@@ -164,9 +164,7 @@
name: (type) @_directive
body: (body
(content) @spell
- (#not-any-of? @_directive "code" "code-block" "sourcecode")
- )
-)
+ (#not-any-of? @_directive "code" "code-block" "sourcecode")))
(paragraph) @spell