merlin icon indicating copy to clipboard operation
merlin copied to clipboard

Treat `.mli.foo` files as `.mli` files

Open lpw25 opened this issue 4 years ago • 3 comments

We sometimes have files with extensions like .mli.pp. It seems that merlin does not recognise the extension in such cases and defaults to treating them as .ml files. It would be mildly useful for it to treat them as .mli files instead.

lpw25 avatar Apr 22 '21 17:04 lpw25

We already have a mechanism to support custom extensions, but you have to specify them in your .merlin file, for instance:

SUFFIX .ml.foo .mli.foo

(one pair of extensions per SUFFIX directive).

trefis avatar May 03 '21 13:05 trefis

Note: this is "additive", you can add it to your .merlin unconditionally, regular .ml and .mli files will still be handled as normal.

trefis avatar May 03 '21 13:05 trefis

I guess that we could use that. It seems a bit of a shame to add multiple SUFFIX directives to every .merlin file we make.

lpw25 avatar May 14 '21 15:05 lpw25