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

cinaps comment indentation should not interpret normal comment formatting #303

Closed ceastlund closed 5 years ago

ceastlund commented 5 years ago

This indentation is wrong, I believe because cinaps is interpreting ]} as the close of a {[ ... ]} comment, rather than the close of a list followed by the close of a record.

(*$
  {x=[]};
        ()
      *)
     (*$*)

I imagine there are similar problems with other formatting like {v ... v}.