-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Just been test-driving this — great job! Enjoying more detailed font lock and better indentation than with ocaml-ts-mode.
Wanted to share a few thoughts I had along the way:
let* ... inshould affect indentation the same aslet ... in, e.g. when youlet (let*) = Lwt.bindand then subsequently writelet* foo = Bar.baz in .... (I wonder if there are test cases for something likeocp-indentso you could try to achieve the same general layout without needing to write lots yourself.)- The regular and
-interfacemodes feel like they only really differ in terms of the grammar: would it make things easier for key bindings and lsp setup etc. to make the-interfacemode inherit from the regular mode? - It might be worth deliberately separating the grammars to some extent, e.g. ensuring that
.ml-only constructs get no font-lock/indent support in.mlifiles, to strongly indicate what's valid and what's not? - Perhaps consider making the repl switch reversible, so that
C-c C-zfrom.mltakes you to the repl, and thenC-c C-zin the repl pops you back. You can save the calling buffer as a local var in the repl to make this easy. Quite a few repl modes have this. utopas an alternateneocaml-repl-programdoesn't work super well, as the point isn't after the#prompt: probably due to terminal cleverness. Might be worth not suggesting it for now!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request