Skip to content

Commit

Permalink
[OCaml] open function_definition scope more often
Browse files Browse the repository at this point in the history
  • Loading branch information
nbacquey committed Jul 5, 2023
1 parent c688358 commit fc29b9d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions topiary/languages/ocaml.scm
Original file line number Diff line number Diff line change
Expand Up @@ -785,18 +785,13 @@
) @end_scope
(#scope_id! "function_definition")
)
(parenthesized_expression
(function_expression
"function" @append_spaced_scoped_softline
) @begin_scope @end_scope
(#scope_id! "function_definition")
)
; The following is the general case, which should happen anywhere except in let bindings
(
(_) @begin_scope
"="? @do_nothing
.
(function_expression
"function" @append_spaced_scoped_softline
) @end_scope
) @begin_scope @end_scope
(#scope_id! "function_definition")
)
(function_expression
Expand Down

0 comments on commit fc29b9d

Please # to comment.