We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ff762 commit 44ec807Copy full SHA for 44ec807
lib/elixir/lib/code/comments.ex
@@ -810,12 +810,13 @@ defmodule Code.Comments do
810
line =
811
case last_arg do
812
[] -> block_start
813
- [{_key, value} | _] -> get_line(value)
814
- [first | _] -> get_line(first)
815
- {_, _, _} -> get_line(last_arg)
+ [{_key, value} | _] -> get_end_line(value, get_line(value))
+ [first | _] -> get_end_line(first, get_line(first))
+ {_, _, _} -> get_end_line(last_arg, get_line(last_arg))
816
_ -> block_start
817
end
818
819
+
820
{trailing_comments, comments} =
821
split_trailing_comments(comments, line, block_end)
822
0 commit comments