Skip to content

Commit

Permalink
simplify function
Browse files Browse the repository at this point in the history
  • Loading branch information
rvantonder committed Sep 17, 2019
1 parent a8ee915 commit d3c65b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matchers/matcher.ml
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,8 @@ module Make (Syntax : Syntax.S) (Info : Info.S) = struct

| Hole Line (identifier, _dimension) ->
let allowed =
let allowed = many (is_not (char '\n')) in
allowed >>= fun x -> return [(String.of_char_list x)^"\n"]
many (is_not (char '\n'))
|>> fun x -> [(String.of_char_list x)^"\n"]
in
let hole_semantics = allowed << char '\n' in
record_matches identifier hole_semantics
Expand Down

0 comments on commit d3c65b8

Please sign in to comment.