File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -10345,19 +10345,19 @@ let add_basename
1034510345 let info = ref Bsb_db.Impl in
1034610346 let syntax_kind = ref Bsb_db.Ml in
1034710347 let invalid_suffix = ref false in
10348- (match Ext_filename.get_extension_maybe basename with
10349- | ".ml" ->
10348+ let file_suffix = Ext_filename.get_extension_maybe basename in
10349+ (match () with
10350+ | _ when file_suffix = Literals.suffix_ml ->
1035010351 ()
10351- | ".re" ->
10352+ | _ when file_suffix = Literals.suffix_re ->
1035210353 syntax_kind := Reason
10353- | ".mli" ->
10354+ | _ when file_suffix = Literals.suffix_mli ->
1035410355 info := Intf
10355- | ".rei" ->
10356+ | _ when file_suffix = Literals.suffix_rei ->
1035610357 info := Intf;
1035710358 syntax_kind := Reason
1035810359 | _ ->
1035910360 invalid_suffix := true
10360-
1036110361 );
1036210362 let info= !info in
1036310363 let syntax_kind = !syntax_kind in
Original file line number Diff line number Diff line change @@ -10377,19 +10377,19 @@ let add_basename
1037710377 let info = ref Bsb_db.Impl in
1037810378 let syntax_kind = ref Bsb_db.Ml in
1037910379 let invalid_suffix = ref false in
10380- (match Ext_filename.get_extension_maybe basename with
10381- | ".ml" ->
10380+ let file_suffix = Ext_filename.get_extension_maybe basename in
10381+ (match () with
10382+ | _ when file_suffix = Literals.suffix_ml ->
1038210383 ()
10383- | ".re" ->
10384+ | _ when file_suffix = Literals.suffix_re ->
1038410385 syntax_kind := Reason
10385- | ".mli" ->
10386+ | _ when file_suffix = Literals.suffix_mli ->
1038610387 info := Intf
10387- | ".rei" ->
10388+ | _ when file_suffix = Literals.suffix_rei ->
1038810389 info := Intf;
1038910390 syntax_kind := Reason
1039010391 | _ ->
1039110392 invalid_suffix := true
10392-
1039310393 );
1039410394 let info= !info in
1039510395 let syntax_kind = !syntax_kind in
You can’t perform that action at this time.
0 commit comments