Hi, I'm the author of omlet, an indentation mode for Ocaml. I gave up developing and even maintaining it, and I'm looking for a good way to restart it from scratch.
Currently, the code does some minimal (but not so trivial) parsing of the code before the pointer to find out how to indent a line. This was developed by hand and incrementally, and quickly became messy. Since then I have developed standalone tools that incrementally parse (correct regions of) code and indent it based on the yacc grammar and a few simple rules. This is much nicer, but seems hard to use from vim. (In fact I realized that it is similar to the earlier vim-dev discussion about on-the-fly syntax checking with an LALR parser [1]). Basically, I would need to attach parsing information to places in the buffer. (The info I need requires more complex parsing than what vim syntax support can give me.) Is there any builtin device for doing that, or do I have to maintain my own structure all the way through edition? has anything like that been done already? Cheers, David [1] http://thread.gmane.org/gmane.editors.vim.devel/19346/focus=19381 --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
