Add terminator info to sigil AST node metadata (#6305)

This commit is contained in:
Alex Jiao
2017-07-08 01:05:37 +02:00
committed by José Valim
parent 232cd3059a
commit d74bd047df
5 changed files with 26 additions and 5 deletions
+1 -1
View File
@@ -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 -> <<>>