From 5ab94c8d7cc7ac328fbe0bd1fa5ba49a8845f6ea Mon Sep 17 00:00:00 2001 From: "Isabell H." <50595752+lucioleKi@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:46:42 +0100 Subject: [PATCH] Fix for missing nominal case in autolink_spec (#1965) Small fix for missing nominal case in autolink_spec. --- lib/ex_doc/language/erlang.ex | 4 ++++ 1 file changed, 4 insertions(+) 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)