diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2022-09-18 20:54:10 +0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-10-15 08:12:55 -0700 |
| commit | 90c44df8cb9fcdd277694615f79f8e5e276c46ba (patch) | |
| tree | fee9556a93c1e52e6be0313fd96bfef53d2ef595 /queries | |
| parent | highlights(dockerfile): add several highlights (diff) | |
| download | nvim-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')
| -rw-r--r-- | queries/rst/highlights.scm | 2 | ||||
| -rw-r--r-- | queries/rst/injections.scm | 2 |
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 |
