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
10345
10345
let info = ref Bsb_db.Impl in
10346
10346
let syntax_kind = ref Bsb_db.Ml in
10347
10347
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 ->
10350
10351
()
10351
- | ".re" ->
10352
+ | _ when file_suffix = Literals.suffix_re ->
10352
10353
syntax_kind := Reason
10353
- | ".mli" ->
10354
+ | _ when file_suffix = Literals.suffix_mli ->
10354
10355
info := Intf
10355
- | ".rei" ->
10356
+ | _ when file_suffix = Literals.suffix_rei ->
10356
10357
info := Intf;
10357
10358
syntax_kind := Reason
10358
10359
| _ ->
10359
10360
invalid_suffix := true
10360
-
10361
10361
);
10362
10362
let info= !info in
10363
10363
let syntax_kind = !syntax_kind in
Original file line number Diff line number Diff line change @@ -10377,19 +10377,19 @@ let add_basename
10377
10377
let info = ref Bsb_db.Impl in
10378
10378
let syntax_kind = ref Bsb_db.Ml in
10379
10379
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 ->
10382
10383
()
10383
- | ".re" ->
10384
+ | _ when file_suffix = Literals.suffix_re ->
10384
10385
syntax_kind := Reason
10385
- | ".mli" ->
10386
+ | _ when file_suffix = Literals.suffix_mli ->
10386
10387
info := Intf
10387
- | ".rei" ->
10388
+ | _ when file_suffix = Literals.suffix_rei ->
10388
10389
info := Intf;
10389
10390
syntax_kind := Reason
10390
10391
| _ ->
10391
10392
invalid_suffix := true
10392
-
10393
10393
);
10394
10394
let info= !info in
10395
10395
let syntax_kind = !syntax_kind in
You can’t perform that action at this time.
0 commit comments