diff --git a/breathe/filetypes.py b/breathe/filetypes.py index f64b0092..47bce1a5 100644 --- a/breathe/filetypes.py +++ b/breathe/filetypes.py @@ -18,4 +18,4 @@ def get_extension(filename: str) -> str: # If the filename is just '.ext' then we get ('.ext', '') so we fall back to first part if # the second isn't there (first, second) = os.path.splitext(filename) - return (second or first).lstrip(".") + return (second or first).lstrip(".").replace("unparsed", "text") diff --git a/documentation/source/codeblocks.rst b/documentation/source/codeblocks.rst index ca3ed92e..fff93ec9 100644 --- a/documentation/source/codeblocks.rst +++ b/documentation/source/codeblocks.rst @@ -91,6 +91,11 @@ recognize the code block's contained syntax as a C++ snippet. * message(STATUS "Element is ${element}") * endforeach() * @endcode + * + * Another code-block that explicitly remains not highlighted. + * @code{.unparsed} + * Show this as is. + * @endcode */ void with_unannotated_cmake_code_block(); diff --git a/examples/specific/code_blocks.h b/examples/specific/code_blocks.h index 390616ba..d2ee92d1 100644 --- a/examples/specific/code_blocks.h +++ b/examples/specific/code_blocks.h @@ -16,6 +16,11 @@ void with_standard_code_block(); * message(STATUS "Element is ${element}") * endforeach() * @endcode + * + * Another code-block that explicitly remains not highlighted. + * @code{.unparsed} + * Show this as is. + * @endcode */ void with_unannotated_cmake_code_block();