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