-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: parse-docstrings with janestreet profile unexpected behavior #2643
Comments
Similarly to #2642, formatting of comments with the janestreet profile is special and it doesn't support asterisk-prefixed comments. The indentation is added because each |
OK. It looks like the instances I have all look like headers (e.g. LICENSE), so I might use something like what headache produces, which does work currently. (* Hello. *)
(* This is a comment with asterisk chars *)
(* at the beginning of every lines. *)
(* *)
(* Yay! *)
let () = () Feel free to close the issue as "won't do" if not relevant, I'm happy with the workaround personally (up to you and/or other users). Thanks! |
Oh, I hadn't seen that you fixed it already, nice! That's one less thing to think about when/if changing profile, so probably for the best. Thanks! |
Hi! I fixed that in #2645 at the same time as the wrap-comments bug as the two had a common root cause. |
Consider this file:
a.ml:
I'm trying to enable
parse-docstrings=true
on it.It formats well with the default profile:
However note how the rest of the lines get shifted to the right when using the
janestreet
profile:Sounds like perhaps 2 bugs:
If you know which option from the profile is causing this, perhaps I could look into tweaking that in my configs, if this doesn't come with other downsides, as a temporary workaround? Thanks!
The text was updated successfully, but these errors were encountered: