Skip to content

Commit 8c788a7

Browse files
authored
Avoid NeoVim error when opening .mll files (#1557)
* 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]> * Add Changes entry Signed-off-by: Edwin Török <[email protected]> --------- Signed-off-by: Edwin Török <[email protected]>
1 parent d44b27d commit 8c788a7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Fixes
44

55
- Fix hover on method calls not showing the type. (#1553, fixes #1552)
6+
- Fix error on opening `.mll` files (#1557)
67

78
# 1.23.0
89

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)