diff options
author | Brad King <brad.king@kitware.com> | 2023-03-09 20:41:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-09 21:10:03 (GMT) |
commit | 8c52458a9ee52b296e0846392116485e8f0868ec (patch) | |
tree | d44ceac394c0f9f6d509f79ac5a0d5321c7ac5a4 /Source/cmRST.cxx | |
parent | d4b21bcdd603f9816c94dfcf50dea2873e91e079 (diff) | |
download | CMake-8c52458a9ee52b296e0846392116485e8f0868ec.zip CMake-8c52458a9ee52b296e0846392116485e8f0868ec.tar.gz CMake-8c52458a9ee52b296e0846392116485e8f0868ec.tar.bz2 |
cmRST: Fix cmake domain directives with newline before argument
The `signature` directive added by commit 74e3c1d313 (Utilities/Sphinx:
Add a directive to document command signatures, 2023-02-24) will be
commonly used with the form:
.. signature::
some_command(SOME_SIGNATURE)
Docs for this signature.
Drop the assumption that all CMake domain directives are immediately
followed by their argument on the same line.
Diffstat (limited to 'Source/cmRST.cxx')
-rw-r--r-- | Source/cmRST.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmRST.cxx b/Source/cmRST.cxx index d4bc7f4..5ff7009 100644 --- a/Source/cmRST.cxx +++ b/Source/cmRST.cxx @@ -21,7 +21,7 @@ cmRST::cmRST(std::ostream& os, std::string docroot) , DocRoot(std::move(docroot)) , CMakeDirective("^.. (cmake:)?(" "command|envvar|genex|signature|variable" - ")::[ \t]+([^ \t\n]+)$") + ")::") , CMakeModuleDirective("^.. cmake-module::[ \t]+([^ \t\n]+)$") , ParsedLiteralDirective("^.. parsed-literal::[ \t]*(.*)$") , CodeBlockDirective("^.. code-block::[ \t]*(.*)$") |