Permalink
Browse files

Fix macro defs without arg list supplied

  • Loading branch information...
1 parent c93c3da commit bef139e4c7546714d571f2a2341eca7a1da38d7e Evan Miller committed Jul 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/aleppo.erl
View
@@ -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);

0 comments on commit bef139e

Please sign in to comment.