Skip to content

Commit

Permalink
Merge pull request #5 from nebularis/keep-context
Browse files Browse the repository at this point in the history
hold on to context when entering subtrees
  • Loading branch information
uwiger committed Dec 24, 2011
2 parents 46e4d06 + b8b2259 commit c702bea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parse_trans.erl
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,8 @@ do_transform(F, Acc, Forms, Context) ->
this_form_rec(F, Form, Context, Acc0),
if Recurse ->
{NewForm, NewAcc} =
enter_subtrees(Form1, F, Context, Acc1, Rec),
enter_subtrees(Form1, F,
update_context(Form1, Context), Acc1, Rec),
{Before1, NewForm, After1, NewAcc};
true ->
{Before1, Form1, After1, Acc1}
Expand Down

0 comments on commit c702bea

Please sign in to comment.