@@ -283,10 +283,10 @@ access_expr -> bin_heredoc : build_bin_heredoc('$1').
283283access_expr -> list_heredoc : build_list_heredoc ('$1' ).
284284access_expr -> bitstring : '$1' .
285285access_expr -> sigil : build_sigil ('$1' ).
286- access_expr -> atom : handle_literal (? exprs ('$1' ), '$1' ).
287- access_expr -> atom_quoted : handle_literal (? exprs ('$1' ), '$1' , atom_delimiter ('$1' )).
288- access_expr -> atom_safe : build_quoted_atom ('$1' , true , atom_delimiter ('$1' )).
289- access_expr -> atom_unsafe : build_quoted_atom ('$1' , false , atom_delimiter ('$1' )).
286+ access_expr -> atom : handle_literal (? exprs ('$1' ), '$1' , atom_colon_meta ( '$1' ) ).
287+ access_expr -> atom_quoted : handle_literal (? exprs ('$1' ), '$1' , atom_delimiter_meta ('$1' )).
288+ access_expr -> atom_safe : build_quoted_atom ('$1' , true , atom_delimiter_meta ('$1' )).
289+ access_expr -> atom_unsafe : build_quoted_atom ('$1' , false , atom_delimiter_meta ('$1' )).
290290access_expr -> dot_alias : '$1' .
291291access_expr -> parens_call : '$1' .
292292
@@ -1029,7 +1029,12 @@ build_quoted_atom({_, Location, Args}, Safe, ExtraMeta) ->
10291029binary_to_atom_op (true ) -> binary_to_existing_atom ;
10301030binary_to_atom_op (false ) -> binary_to_atom .
10311031
1032- atom_delimiter ({_Kind , {_Line , _Column , Delimiter }, _Args }) ->
1032+ atom_colon_meta ({atom , _Location , Atom }) when Atom =:= true orelse Atom =:= false orelse Atom =:= nil ->
1033+ [{format , atom }];
1034+ atom_colon_meta (_ ) ->
1035+ [].
1036+
1037+ atom_delimiter_meta ({_Kind , {_Line , _Column , Delimiter }, _Args }) ->
10331038 case ? token_metadata () of
10341039 true -> [{delimiter , <<Delimiter >>}];
10351040 false -> []
0 commit comments