diff --git a/lib/ex_doc/language/erlang.ex b/lib/ex_doc/language/erlang.ex index 8a2d82031..65ebef0ff 100644 --- a/lib/ex_doc/language/erlang.ex +++ b/lib/ex_doc/language/erlang.ex @@ -236,6 +236,10 @@ defmodule ExDoc.Language.Erlang do {:attribute, anno, :type, ast} -> {name, _, _} = ast {name, anno, Code.Typespec.type_to_quoted(ast)} + + {:attribute, anno, :nominal, ast} -> + {name, _, _} = ast + {name, anno, Code.Typespec.type_to_quoted(ast)} end formatted = format_spec(ast)