Skip to content

Commit

Permalink
treat .unparsed as plain text #805
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Feb 15, 2022
1 parent 2a68310 commit 9c97e54
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion breathe/filetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
5 changes: 5 additions & 0 deletions documentation/source/codeblocks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 5 additions & 0 deletions examples/specific/code_blocks.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 9c97e54

Please sign in to comment.