Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/elixir/src/elixir_tokenizer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -826,9 +826,10 @@ handle_strings(T, Line, Column, H, Scope, Tokens) ->
NewScope =
case H of
$' ->
Message = "single-quoted strings represent charlists. "
Message = "using single-quoted strings to represent charlists is deprecated.\n"
"Use ~c\"\" if you indeed want a charlist or use \"\" instead.\n"
"You may run \"mix format --migrate\" to fix this warning automatically.",
"You may run \"mix format --migrate\" to change all single-quoted\n"
"strings to use the ~c sigil and fix this warning.",
prepend_warning(Line, Column-1, Message, InterScope);

_ ->
Expand Down
Loading