Skip to content

Commit

Permalink
javadoc: add support for tparam
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanlachnit authored Nov 7, 2023
1 parent 92af8c2 commit 9165bc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hawkmoth/util/doccompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def javadoc(comment):
# @param[direction]
comment = re.sub(r"(?m)^([ \t]*)@param\[([^]]*)\]([ \t]+)([a-zA-Z0-9_]+|\.\.\.)([ \t]+)",
"\n\\1:param\\3\\4: *(\\2)* \\5", comment)
# @tparam
comment = re.sub(r"(?m)^([ \t]*)@tparam([ \t]+)([a-zA-Z0-9_]+|\.\.\.)([ \t]+)",
"\n\\1:tparam\\2\\3:\\4", comment)
# @return
comment = re.sub(r"(?m)^([ \t]*)@returns?([ \t]+|$)",
"\n\\1:return:\\2", comment)
Expand Down

0 comments on commit 9165bc0

Please sign in to comment.