Skip to content

Commit dd01440

Browse files
committed
Fix syntax (nitpick)
1 parent a3e8b67 commit dd01440

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

language-server/dm/document.ml

+8-10
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,18 @@ let record_outline document id (ast : Synterp.vernac_control_entry) classif (out
117117
match classif with
118118
| VtStartProof (_, names) ->
119119
let vernac_gen_expr = ast.v.expr in
120-
let type_ =
121-
begin match vernac_gen_expr with
120+
let type_ = match vernac_gen_expr with
122121
| VernacSynterp _ -> None
123122
| VernacSynPure pure ->
124123
match pure with
125124
| Vernacexpr.VernacStartTheoremProof (kind, _) -> Some (TheoremKind kind)
126125
| Vernacexpr.VernacDefinition ((_, def), _, _) -> Some (DefinitionType def)
127126
| _ -> None
128-
end in
129-
let name = begin match names with
127+
in
128+
let name = match names with
130129
|[] -> "default"
131130
| n :: _ -> Names.Id.to_string n
132-
end in
131+
in
133132
let statement = "" in
134133
begin match type_ with
135134
| None -> outline
@@ -140,19 +139,18 @@ let record_outline document id (ast : Synterp.vernac_control_entry) classif (out
140139
end
141140
| VtSideff (names, _) ->
142141
let vernac_gen_expr = ast.v.expr in
143-
let type_ =
144-
begin match vernac_gen_expr with
142+
let type_ = match vernac_gen_expr with
145143
| VernacSynterp _ -> None
146144
| VernacSynPure pure ->
147145
match pure with
148146
| Vernacexpr.VernacStartTheoremProof (kind, _) -> Some (TheoremKind kind)
149147
| Vernacexpr.VernacDefinition ((_, def), _, _) -> Some (DefinitionType def)
150148
| _ -> None
151-
end in
152-
let name = begin match names with
149+
in
150+
let name = match names with
153151
|[] -> "default"
154152
| n :: _ -> Names.Id.to_string n
155-
end in
153+
in
156154
let statement = "" in
157155
begin match type_ with
158156
| None -> outline

0 commit comments

Comments
 (0)