Skip to content
Snippets Groups Projects
Commit 9fa67cf9 authored by Alan Schmitt's avatar Alan Schmitt
Browse files

tiny case event change

parent 955b5e6f
No related branches found
No related tags found
No related merge requests found
......@@ -256,7 +256,7 @@ let generate_logged_case spat binders ctx newctx sbody need_break =
let token = token_fresh () in
let sintro =
match !current_mode with
| Mode_line_token -> ""
| Mode_line_token -> token
| Mode_logged ->
let ids = List.map fst binders in
let mk_binding x =
......@@ -274,8 +274,7 @@ let generate_logged_case spat binders ctx newctx sbody need_break =
| Mode_unlogged -> ""
in
let sbinders = ppf_match_binders binders in
(Printf.sprintf "@[<v 0>%s%s:@;<1 2>@[<v 0>%s%s%s%s@]@]"
(match !current_mode with Mode_line_token -> token | _ -> "")
(Printf.sprintf "@[<v 0>%s:@;<1 2>@[<v 0>%s%s%s%s@]@]"
spat sbinders sintro sbody
(if need_break then "@,break;" else ""))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment