Skip to content

Commit

Permalink
Fix invalid string escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Sep 25, 2019
1 parent d19d93b commit e5489ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CppHeaderParser/CppHeaderParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def t_COMMENT_MULTILINE(t):
# not sure why, but get double new lines
v = t.value.replace("\n\n", "\n")
# strip prefixing whitespace
v = re.sub("\n[\s]+\*", "\n*", v)
v = re.sub("\n[\\s]+\\*", "\n*", v)
doxygenCommentCache += v
t.lexer.lineno += len([a for a in t.value if a == "\n"])

Expand Down Expand Up @@ -997,7 +997,7 @@ def __init__(self, nameStack, curClass, methinfo, curTemplate):
doxyLines = self["doxygen"].split("\n")
lastParamDesc = ""
for doxyLine in doxyLines:
if " @param " in doxyLine or " \param " in doxyLine:
if " @param " in doxyLine or " \\param " in doxyLine:
try:
# Strip out the param
doxyLine = doxyLine[doxyLine.find("param ") + 6 :]
Expand Down

0 comments on commit e5489ee

Please sign in to comment.