@@ -105,14 +105,14 @@ defmodule ExDoc.Retriever do
105
105
106
106
# TODO: The default function groups must be returned by the language
107
107
groups_for_functions =
108
- config . groups_for_functions ++ [ Callbacks: & & 1 [ :__callback__ ] , Functions: fn _ -> true end ]
108
+ config . groups_for_functions ++ [ Callbacks: & & 1 [ :__doc__ ] == :callback , Functions: fn _ -> true end ]
109
109
110
110
docs_groups = Enum . map ( groups_for_functions , & elem ( & 1 , 0 ) )
111
111
function_docs = get_docs ( module_data , source , groups_for_functions )
112
112
docs = function_docs ++ get_callbacks ( module_data , source , groups_for_functions )
113
113
types = get_types ( module_data , source )
114
114
115
- metadata = Map . put ( metadata , :__type__ , module_data . type )
115
+ metadata = Map . put ( metadata , :__doc__ , module_data . type )
116
116
group = GroupMatcher . match_module ( config . groups_for_modules , module , module_data . id , metadata )
117
117
{ nested_title , nested_context } = module_data . nesting_info || { nil , nil }
118
118
@@ -247,7 +247,7 @@ defmodule ExDoc.Retriever do
247
247
annotations = callback_data . extra_annotations ++ annotations_from_metadata ( metadata )
248
248
doc_ast = doc_ast ( content_type , doc , file: source . path , line: doc_line + 1 )
249
249
250
- metadata = Map . put ( metadata , :__callback__ , true )
250
+ metadata = Map . put ( metadata , :__doc__ , :callback )
251
251
group = GroupMatcher . match_function ( groups_for_functions , metadata )
252
252
253
253
% ExDoc.FunctionNode {
0 commit comments