OCamlPro / ocp-indent

Indentation tool for OCaml, to be used from editors like Emacs and Vim.
http://www.typerex.org/ocp-indent.html
Other
201 stars 63 forks source link

Indent cinaps comments as code. #299

Closed ceastlund closed 5 years ago

ceastlund commented 5 years ago

Right now ocp-indent indents cinaps comments, e.g. ($ print_endline ";;" ), as prose. Everything gets unconditionally indented to the leftmost column of the comment. It would be more readable to indent them as code, much like {[ ... ]} annotations inside comments.