-
Notifications
You must be signed in to change notification settings - Fork 79
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
Menhir/ocamlyacc support #152
Comments
The current (git) version of Tuareg is not activated for |
A special mode would be very appreciated. I don't know how to accomplish it, but it should probably switch between some mechanism to handle indentation of Menhir when outside of { } blocks, and the normal OCaml indentation when it is within them. |
It should be reasonably easy to provide such a major mode as a "minor" tweak to Tuareg mode (i.e. reusing most of Tuareg's highlight and indentation rules, and adding some rules specific to |
I've just pushed a primitive |
Woot! |
(So what's the easiest way to try this out?) |
Try melpa or install the Git version (opam pin...). |
Would it be possible to do a new release with |
Release in progress: ocaml/opam-repository#12627 |
Currently, tuareg doesn't support .mly files very well. The highlight works fine but the automatic indentation can be a bit wacky when it comes to rules. Is there a way to disable automatic indentation in .mly files or part of it (everything that is not in braces) ? I don't know how hard it would be to support it at least partly but maybe until ocp-indent comes-up with its own support (see
OCamlPro/ocp-indent#50), maybe it can be at least partially supported by tuareg if it's not too complicated.
The text was updated successfully, but these errors were encountered: