Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix highlights nested in directive body
The leading two dots of a RST directive gets matched by rstExplicitMarkup group first, and then the directive name and directive body will be matched by the groups contained in rstDirectives cluster in order. The rstExDirective group in rstDiretives matches any RST directives other than footnote, citation and hyperlink target, therefore admonition and code block will be matched by rstExDirective. This fix has rstExDirective contain rstExplicitMarkup so as to enable recursive RST directives match. The interpreted texts enclosed in quotes are not highlighted within a RST directive body, because the rstCruft cluster contains a non-existing rstInterpretedText group.It should be renamed to rstInterpretedTextOrHyperlinkReference which is defined in a DefineInlineMarkup function call.
- Loading branch information