@@ -1055,7 +1055,7 @@ unsafe_to_atom(Binary, Line, Column, #elixir_tokenizer{existing_atoms_only=true}
1055
1055
try
1056
1056
{ok , binary_to_existing_atom (Binary , utf8 )}
1057
1057
catch
1058
- error :badarg ->
1058
+ error :badarg ->
1059
1059
% Check if it's a UTF-8 issue by trying to convert to list
1060
1060
try
1061
1061
List = elixir_utils :characters_to_list (Binary ),
@@ -1719,14 +1719,7 @@ tokenize_sigil_contents([H | T] = Original, [S | _] = SigilName, Line, Column, S
1719
1719
case elixir_interpolation :extract (Line , Column + 1 , Scope , ? is_downcase (S ), T , sigil_terminator (H )) of
1720
1720
{NewLine , NewColumn , Parts , Rest , NewScope } ->
1721
1721
Indentation = nil ,
1722
- try
1723
- add_sigil_token (SigilName , Line , Column , NewLine , NewColumn , tokens_to_binary (Parts ), Rest , NewScope , Tokens , Indentation , <<H >>)
1724
- catch
1725
- error :#{'__struct__' := 'Elixir.UnicodeConversionError' , message := Message } ->
1726
- Sigil = [$~ , S , H ],
1727
- Message = " (for sigil ~ts starting at line ~B )" ,
1728
- interpolation_error (Message , [$~ ] ++ SigilName ++ Original , Scope , Tokens , Message , [Sigil , Line ], Line , Column , [H ], [sigil_terminator (H )])
1729
- end ;
1722
+ add_sigil_token (SigilName , Line , Column , NewLine , NewColumn , tokens_to_binary (Parts ), Rest , NewScope , Tokens , Indentation , <<H >>);
1730
1723
1731
1724
{error , Reason } ->
1732
1725
Sigil = [$~ , S , H ],
0 commit comments