Skip to content

Commit

Permalink
Remove unnecessarily added match expression
Browse files Browse the repository at this point in the history
This previously did not have a match expression and it is not necessary
  • Loading branch information
tobil4sk committed Dec 7, 2024
1 parent 030aed7 commit 1773634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/syntax/grammar.ml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let rec plist f = function%parser
| [ f as v; [%let l = plist f] ] -> v :: l
| [ ] -> []

let psep_nonempty sep f s = match%parser s with
let psep_nonempty sep f = function%parser
| [ f as v; [%s s] ] ->
let rec loop = function%parser
| [ (sep2,_); f as v; loop as l ] when sep2 = sep -> v :: l
Expand Down

0 comments on commit 1773634

Please sign in to comment.