Skip to content

Commit

Permalink
Allow macro as case clause.
Browse files Browse the repository at this point in the history
  • Loading branch information
ztion authored and michalmuskala committed Sep 12, 2023
1 parent 0e0e907 commit 4fc600b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/erlfmt_parse.yrl
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ cr_clauses -> cr_clause ';' cr_clauses : ['$1' | '$3'].

cr_clause -> expr clause_guard clause_body :
{clause, ?range_anno('$1', '$3'), '$1', '$2', ?val('$3')}.
cr_clause -> macro_call_expr :
'$1'.

receive_expr -> 'receive' cr_clauses 'end' :
Clauses = {clauses, ?range_anno('$1', '$3'), '$2'},
Expand Down

0 comments on commit 4fc600b

Please sign in to comment.