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
89
89
let info = ref Bsb_db. Impl in
90
90
let syntax_kind = ref Bsb_db. Ml in
91
91
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 ->
94
95
()
95
- | ".re" ->
96
+ | _ when file_suffix = Literals. suffix_re ->
96
97
syntax_kind := Reason
97
- | ".mli" ->
98
+ | _ when file_suffix = Literals. suffix_mli ->
98
99
info := Intf
99
- | ".rei" ->
100
+ | _ when file_suffix = Literals. suffix_rei ->
100
101
info := Intf ;
101
102
syntax_kind := Reason
102
103
| _ ->
103
104
invalid_suffix := true
104
-
105
105
);
106
106
let info= ! info in
107
107
let syntax_kind = ! syntax_kind in
You can’t perform that action at this time.
0 commit comments