Skip to content

Commit 30bbc14

Browse files
committed
Fix loading of cmts with Tstr_primitive
Signed-off-by: Jon Ludlam <[email protected]>
1 parent 3d40f62 commit 30bbc14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/model/ident_env.cppo.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,10 @@ let extract_structure_tree_item item =
313313
| Tstr_open o ->
314314
((extract_extended_open o) :> extracted_items list)
315315
#endif
316+
| Tstr_primitive {val_id; _} ->
317+
[`Value (val_id, false)]
316318
| Tstr_eval _
317-
| Tstr_primitive _ | Tstr_typext _
319+
| Tstr_typext _
318320
| Tstr_exception _
319321
| Tstr_attribute _ -> []
320322

0 commit comments

Comments
 (0)