summaryrefslogtreecommitdiff
path: root/sphinx/domains/javascript.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-09-21 10:24:16 +0200
committerGeorg Brandl <georg@python.org>2011-09-21 10:24:16 +0200
commit1f59194ee341182e8071d58743442213ab810dbe (patch)
tree531900f61e5e634f0317b4b45590407e17f32ec5 /sphinx/domains/javascript.py
parente74a5541df69b696d3c99c6cd1fa9963f22f824a (diff)
downloadsphinx-git-1f59194ee341182e8071d58743442213ab810dbe.tar.gz
Fix #663: add "return type" doc field to JS domain.
Diffstat (limited to 'sphinx/domains/javascript.py')
-rw-r--r--sphinx/domains/javascript.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/domains/javascript.py b/sphinx/domains/javascript.py
index 73edf4515..882a01074 100644
--- a/sphinx/domains/javascript.py
+++ b/sphinx/domains/javascript.py
@@ -127,6 +127,8 @@ class JSCallable(JSObject):
can_collapse=True),
Field('returnvalue', label=l_('Returns'), has_arg=False,
names=('returns', 'return')),
+ Field('returntype', label=l_('Return type'), has_arg=False,
+ names=('rtype',)),
]