File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -89,19 +89,19 @@ let add_basename
8989 let info = ref Bsb_db. Impl in
9090 let syntax_kind = ref Bsb_db. Ml in
9191 let invalid_suffix = ref false in
92- (match Ext_filename. get_extension_maybe basename with
93- | ".ml" ->
92+ let file_suffix = Ext_filename. get_extension_maybe basename in
93+ (match () with
94+ | _ when file_suffix = Literals. suffix_ml ->
9495 ()
95- | ".re" ->
96+ | _ when file_suffix = Literals. suffix_re ->
9697 syntax_kind := Reason
97- | ".mli" ->
98+ | _ when file_suffix = Literals. suffix_mli ->
9899 info := Intf
99- | ".rei" ->
100+ | _ when file_suffix = Literals. suffix_rei ->
100101 info := Intf ;
101102 syntax_kind := Reason
102103 | _ ->
103104 invalid_suffix := true
104-
105105 );
106106 let info= ! info in
107107 let syntax_kind = ! syntax_kind in
You can’t perform that action at this time.
0 commit comments