aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-02-10 17:31:17 +0100
committerLukas Larsson <[email protected]>2012-02-14 14:59:12 +0100
commit617512640c9c5196fc9a6cc2de7742c393410059 (patch)
treefe63e4b1f1fbc60ce527d4d97e868fdb1c5a4be4 /lib
parent42550aa765f0336aaa103f059491d2f6a7df3a51 (diff)
downloadotp-617512640c9c5196fc9a6cc2de7742c393410059.tar.gz
otp-617512640c9c5196fc9a6cc2de7742c393410059.tar.bz2
otp-617512640c9c5196fc9a6cc2de7742c393410059.zip
Allow 1..2 types to be exported from edoc
Diffstat (limited to 'lib')
-rw-r--r--lib/erl_docgen/src/docgen_edoc_xml_cb.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/erl_docgen/src/docgen_edoc_xml_cb.erl b/lib/erl_docgen/src/docgen_edoc_xml_cb.erl
index dc9bc565ee..0971451b32 100644
--- a/lib/erl_docgen/src/docgen_edoc_xml_cb.erl
+++ b/lib/erl_docgen/src/docgen_edoc_xml_cb.erl
@@ -975,6 +975,8 @@ t_type([E=#xmlElement{name = atom}]) ->
t_atom(E);
t_type([E=#xmlElement{name = integer}]) ->
t_integer(E);
+t_type([E=#xmlElement{name = range}]) ->
+ t_range(E);
t_type([E=#xmlElement{name = float}]) ->
t_float(E);
t_type([#xmlElement{name = nil}]) ->
@@ -1001,6 +1003,9 @@ t_atom(E) ->
t_integer(E) ->
[get_attrval(value, E)].
+t_range(E) ->
+ [get_attrval(value, E)].
+
t_float(E) ->
[get_attrval(value, E)].