We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7e4f148 + dc13050 commit ce90a6dCopy full SHA for ce90a6d
base/docs.jl
@@ -150,7 +150,7 @@ end
150
151
uncurly(ex) = isexpr(ex, :curly) ? ex.args[1] : ex
152
153
-namify(ex::Expr) = namify(ex.args[1])
+namify(ex::Expr) = isexpr(ex, :.)? ex : namify(ex.args[1])
154
namify(sy::Symbol) = sy
155
156
function mdify(ex)
test/docs.jl
@@ -8,3 +8,15 @@ macro macro_doctest() end
8
@doc "Helps test if macros can be documented with `@doc \"...\" -> @...`." ->
9
@macro_doctest
10
@test (@doc @macro_doctest) != nothing
11
+
12
+# issue #11548
13
14
+module ModuleMacroDoc
15
+macro m() end
16
+end
17
18
+@doc ("I am a module";) ModuleMacroDoc
19
+@doc ("I am a macro";) ModuleMacroDoc.@m
20
21
+@test (@doc ModuleMacroDoc) == "I am a module"
22
+@test (@doc ModuleMacroDoc.@m) == "I am a macro"
0 commit comments