File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -627,9 +627,10 @@ defmodule ExDoc.Language.Elixir do
627
627
end
628
628
end
629
629
630
- # There are two special forms that are forbidden by the tokenizer
630
+ # There are special forms that are forbidden by the tokenizer
631
631
defp parse_function ( "__aliases__" ) , do: { :function , :__aliases__ }
632
632
defp parse_function ( "__block__" ) , do: { :function , :__block__ }
633
+ defp parse_function ( "%" ) , do: { :function , :% }
633
634
634
635
defp parse_function ( string ) do
635
636
case Code . string_to_quoted ( "& #{ string } /0" ) do
Original file line number Diff line number Diff line change @@ -160,6 +160,9 @@ defmodule ExDoc.Language.ElixirTest do
160
160
assert autolink_doc ( "Kernel.SpecialForms.%{}/1" ) ==
161
161
~m" [`Kernel.SpecialForms.%{}/1`](https://hexdocs.pm/elixir/Kernel.SpecialForms.html#%25%7B%7D/1)"
162
162
163
+ assert autolink_doc ( "Kernel.SpecialForms.%/2" ) ==
164
+ ~m" [`Kernel.SpecialForms.%/2`](https://hexdocs.pm/elixir/Kernel.SpecialForms.html#%25/2)"
165
+
163
166
assert autolink_doc ( "Kernel.SpecialForms.{}/1" ) ==
164
167
~m" [`Kernel.SpecialForms.{}/1`](https://hexdocs.pm/elixir/Kernel.SpecialForms.html#%7B%7D/1)"
165
168
You can’t perform that action at this time.
0 commit comments