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 | c6a81292f7f3b526c736a7afc5565bb02544e3ae (diff) | |
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 5fb228fa..1d83be06 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 1d576ef6..97bd0628 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 |
