Skip to content

Commit

Permalink
[ocaml] put space between constructor and list pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
nbacquey committed Oct 23, 2023
1 parent d1dc299 commit bb3ba08
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions topiary-queries/queries/ocaml.scm
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@
(field_get_expression)
(local_open_pattern)
(labeled_argument)
(list_pattern)
; start equivalence class
(extended_module_path)
(module_path)
Expand Down
5 changes: 5 additions & 0 deletions topiary/tests/samples/expected/ocaml.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1134,3 +1134,8 @@ module Make:
functor (I: Interface.S) ->
functor (_: Transport.S with type payload = I.data Payload.t) ->
S

(* #647: missing space for pattern matching of constructor holding list *)
let _ =
match foo with
| Bar ["baz"] -> qux
5 changes: 5 additions & 0 deletions topiary/tests/samples/input/ocaml.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1065,3 +1065,8 @@ module Make:
functor (I: Interface.S) ->
functor (_: Transport.S with type payload = I.data Payload.t) ->
S

(* #647: missing space for pattern matching of constructor holding list *)
let _ =
match foo with
| Bar ["baz"] -> qux

0 comments on commit bb3ba08

Please sign in to comment.