diff --git a/lib/sourceror.ex b/lib/sourceror.ex index 7be3cbd..e514251 100644 --- a/lib/sourceror.ex +++ b/lib/sourceror.ex @@ -655,15 +655,17 @@ defmodule Sourceror do ## Options - - `:include_comments` - When `true`, it includes the comments into the range. Defaults to `false`. - - iex> ~S"\"" - ...> # Foo - ...> :baz # Bar - ...> "\"" - ...> |> Sourceror.parse_string!() - ...> |> Sourceror.get_range(include_comments: true) - %{start: [line: 1, column: 1], end: [line: 2, column: 11]} + - `:include_comments` - When `true`, it includes the comments into the range. Defaults to `false`. + + ```elixir + iex> ~S"\"" + ...> # Foo + ...> :baz # Bar + ...> "\"" + ...> |> Sourceror.parse_string!() + ...> |> Sourceror.get_range(include_comments: true) + %{start: [line: 1, column: 1], end: [line: 2, column: 11]} + ``` """ @spec get_range(Macro.t()) :: range | nil def get_range(quoted, opts \\ []) do