Skip to content
Snippets Groups Projects
Commit 1c0ac8d2 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[docgen][code_to_md] use include statement to suppress matched string

parent ae955275
No related branches found
No related tags found
2 merge requests!1915Feature/modify python examples docgen,!1914[examples] Implement Python-only doc generator using pyparsing
...@@ -34,7 +34,7 @@ def cppRules(): ...@@ -34,7 +34,7 @@ def cppRules():
""" """
Define a list of rules to apply for cpp source code Define a list of rules to apply for cpp source code
""" """
suppressHeader = Suppress(Combine("// -*-" + SkipTo("*******/" + LineEnd()) + "*******/")) suppressHeader = Suppress(Combine("// -*-" + SkipTo("*******/" + LineEnd(), include=True)))
suppressHeaderGuard = Suppress("#ifndef" + Optional(restOfLine) + LineEnd() + "#define" + Optional(restOfLine)) suppressHeaderGuard = Suppress("#ifndef" + Optional(restOfLine) + LineEnd() + "#define" + Optional(restOfLine))
suppressEndHeaderGuard = Suppress("#endif" + Optional(restOfLine)) suppressEndHeaderGuard = Suppress("#endif" + Optional(restOfLine))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment