CMake/Tests/CMakeLib/testRSTmod.cmake
Brad King 2945814de2 cmRST: Teach cmake-module directive to scan bracket comments
When scanning CMake module files for .rst comments, recognize
bracket comments starting in ".rst:" too.  For example:

 #[[.rst:

Include the bracket comment content terminated by the closing bracket.
Exclude the line containing the bracket if it starts in "#".

Teach the CMakeLib.testRST test to cover multiple bracket lengths
and ending brackets on lines with and without "#".

Update the cmake-developer.7 manual to document the bracket-comment
syntax for .rst documentation.
2013-10-23 09:36:00 -04:00

12 lines
207 B
CMake

#.rst:
# CMake Module Content
#.rst:
# More CMake Module Content
#[[.rst:
Bracket Comment Content
# not part of content]] # not part of content
#[=[.rst:
[
Bracket Comment Content
]]=] # not part of content