mirror of
https://github.com/vale981/python-docstring-mode
synced 2025-03-04 17:11:41 -05:00
group epytext and ReST params the same way
This commit is contained in:
parent
5068940366
commit
dc8719dffe
1 changed files with 7 additions and 0 deletions
|
@ -295,6 +295,13 @@ class FieldParagraph(RegularParagraph):
|
|||
elif ( set([myWords[0], theirWords[0]]) ==
|
||||
set([":return:", ":rtype:"]) ):
|
||||
return True
|
||||
elif ( set([myWords[0], theirWords[0]]) ==
|
||||
set([":param", ":type"]) and
|
||||
len(myWords) > 1 and len(theirWords) > 1 and
|
||||
myWords[1] == theirWords[1]):
|
||||
# same as "matching @param and @type" below, but stricter;
|
||||
# FIXME: these should be merged.
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
elif len(myWords) > 1 and len(theirWords) > 1:
|
||||
|
|
Loading…
Add table
Reference in a new issue