diff --git a/apps/language_server/lib/language_server/providers/selection_ranges.ex b/apps/language_server/lib/language_server/providers/selection_ranges.ex index 5e794be26..a63c5588d 100644 --- a/apps/language_server/lib/language_server/providers/selection_ranges.ex +++ b/apps/language_server/lib/language_server/providers/selection_ranges.ex @@ -16,8 +16,7 @@ defmodule ElixirLS.LanguageServer.Providers.SelectionRanges do defp token_length(token) when token in [:"<<", :">>", :do, :fn], do: 2 defp token_length(_), do: 0 - # TODO => | - @stop_tokens [:",", :";", :eol] + @stop_tokens [:",", :";", :eol, :eof, :pipe_op] def selection_ranges(text, positions) do lines = SourceFile.lines(text)