@@ -477,8 +477,8 @@ tokenize([$:, H | T] = Original, Line, Column, Scope, Tokens) when ?is_quote(H)
477
477
478
478
tokenize ([$: | String ] = Original , Line , Column , Scope , Tokens ) ->
479
479
case tokenize_identifier (String , Line , Column , Scope , false ) of
480
- {_Kind , Atom , Rest , Length , _Ascii , _Special } ->
481
- NewScope = maybe_warn_for_ambiguous_bang_before_equals (atom , Atom , Rest , Scope , Line ),
480
+ {_Kind , Unencoded , Atom , Rest , Length , _Ascii , _Special } ->
481
+ NewScope = maybe_warn_for_ambiguous_bang_before_equals (atom , Unencoded , Rest , Scope , Line ),
482
482
Token = {atom , {Line , Column , nil }, Atom },
483
483
tokenize (Rest , Line , Column + 1 + Length , NewScope , [Token | Tokens ]);
484
484
empty ->
@@ -559,7 +559,7 @@ tokenize([$. | T], Line, Column, Scope, Tokens) ->
559
559
560
560
tokenize (String , Line , Column , Scope , Tokens ) ->
561
561
case tokenize_identifier (String , Line , Column , Scope , not previous_was_dot (Tokens )) of
562
- {Kind , Atom , Rest , Length , Ascii , Special } ->
562
+ {Kind , Unencoded , Atom , Rest , Length , Ascii , Special } ->
563
563
HasAt = lists :member ($@ , Special ),
564
564
565
565
case Rest of
@@ -583,7 +583,7 @@ tokenize(String, Line, Column, Scope, Tokens) ->
583
583
tokenize_alias (Rest , Line , Column , Atom , Length , Ascii , Special , Scope , Tokens );
584
584
585
585
_ when Kind == identifier ->
586
- NewScope = maybe_warn_for_ambiguous_bang_before_equals (identifier , Atom , Rest , Scope , Line ),
586
+ NewScope = maybe_warn_for_ambiguous_bang_before_equals (identifier , Unencoded , Rest , Scope , Line ),
587
587
Token = check_call_identifier (Line , Column , Atom , Rest ),
588
588
tokenize (Rest , Line , Column + Length , NewScope , [Token | Tokens ]);
589
589
@@ -1142,7 +1142,7 @@ tokenize_identifier(String, Line, Column, Scope, MaybeKeyword) ->
1142
1142
{keyword , Atom , Type } ->
1143
1143
{keyword , Atom , Type , Rest , Length };
1144
1144
{ok , Atom } ->
1145
- {Kind , Atom , Rest , Length , Ascii , Special };
1145
+ {Kind , Acc , Atom , Rest , Length , Ascii , Special };
1146
1146
{error , _Reason } = Error ->
1147
1147
Error
1148
1148
end ;
@@ -1462,11 +1462,11 @@ maybe_warn_too_many_of_same_char(_Token, _Rest, _Line, Scope) ->
1462
1462
Scope .
1463
1463
1464
1464
% % TODO: Turn into an error on v2.0
1465
- maybe_warn_for_ambiguous_bang_before_equals (Kind , Atom , [$= | _ ], Scope , Line ) ->
1465
+ maybe_warn_for_ambiguous_bang_before_equals (Kind , Unencoded , [$= | _ ], Scope , Line ) ->
1466
1466
{What , Identifier } =
1467
1467
case Kind of
1468
- atom -> {" atom" , [$: | atom_to_list ( Atom ) ]};
1469
- identifier -> {" identifier" , atom_to_list ( Atom ) }
1468
+ atom -> {" atom" , [$: | Unencoded ]};
1469
+ identifier -> {" identifier" , Unencoded }
1470
1470
end ,
1471
1471
1472
1472
case lists :last (Identifier ) of
0 commit comments