Add terminator info to sigil AST node metadata (#6305)
This commit is contained in:
@@ -86,7 +86,7 @@ parse_error(Line, File, <<"syntax error before: ">>, <<"'end'">>) ->
|
||||
|
||||
%% Produce a human-readable message for errors before a sigil
|
||||
parse_error(Line, File, <<"syntax error before: ">>, <<"{sigil,", _Rest/binary>> = Full) ->
|
||||
{sigil, _, Sigil, [Content | _], _} = parse_erl_term(Full),
|
||||
{sigil, _, Sigil, [Content | _], _, _} = parse_erl_term(Full),
|
||||
Content2 = case is_binary(Content) of
|
||||
true -> Content;
|
||||
false -> <<>>
|
||||
|
||||
Reference in New Issue
Block a user