Skip to content

Commit 27fce03

Browse files
committed
Avoid NeoVim error when opening .mll files
Opening a .mll file results in: `ocamllsp: -32600: unsuppported file extension` Signed-off-by: Edwin Török <[email protected]>
1 parent d44b27d commit 27fce03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml-lsp-server/src/document.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Kind = struct
88

99
let of_fname_opt p =
1010
match Filename.extension p with
11-
| ".ml" | ".eliom" | ".re" -> Some Impl
11+
| ".ml" | ".eliom" | ".re" | ".mll" | ".mly" -> Some Impl
1212
| ".mli" | ".eliomi" | ".rei" -> Some Intf
1313
| _ -> None
1414
;;

0 commit comments

Comments
 (0)