Skip to content

Commit c35edd1

Browse files
josevalimsabiwara
authored andcommitted
Improve end_of_expression docs
1 parent bb8ad44 commit c35edd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/elixir/lib/macro.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ defmodule Macro do
155155
`do`-`end` blocks (when `:token_metadata` is true)
156156
157157
* `:end_of_expression` - denotes when the end of expression effectively
158-
happens (when `:token_metadata` is true). Available for all expressions
159-
except the last one inside a `__block__`
158+
happens (when `:token_metadata` is true). This is only available for
159+
direct children of a `__block__`, and it is either the location of a
160+
newline or of the `;` character. The last expression of `__block__`
161+
does not have this metadata.
160162
161163
* `:indentation` - indentation of a sigil heredoc
162164

0 commit comments

Comments
 (0)