Skip to content

Commit

Permalink
Fix macro defs without arg list supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Miller committed Jul 26, 2012
1 parent c93c3da commit bef139e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aleppo.erl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ process_tree([Node|Rest], TokenAcc, Context) ->
{ok, {DefinedArgs, DefinedTokens}} ->
expand_macro_fun(Loc, DefinedArgs, DefinedTokens, MacroArgs);
_ ->
dict:fetch(MacroName, Context#ale_context.macro_dict)
MacroArgsWithCommas = insert_comma_tokens(MacroArgs, Loc),
dict:fetch(MacroName, Context#ale_context.macro_dict) ++ [{'(', Loc}|MacroArgsWithCommas] ++ [{')', Loc}]
end,
{_, RevProcessedTokens} = process_tree(InsertTokens, [], Context),
process_tree(Rest, RevProcessedTokens ++ TokenAcc, Context);
Expand Down

0 comments on commit bef139e

Please sign in to comment.