Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] ocaml-mode-3.05
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] ocaml-mode-3.05
From: David Fox <david@lindows.com>

> I did notice that when I loaded a buffer
> in ocaml-mode the comments were not colorized properly, though when I
> toggled font-lock mode off and on they came out right.

This is a bit strange: when you load a file, ocaml-mode colorize the
whole buffer, just as when toggle on-and-off, or use font-lock-fontify
buffer. So the result should not differ.
However, as soon as you edit the text, colorization is done
individually on each modified line, and may come out incorect.

> This is also my main problem with tuareg mode - mysterious
> colorization behavior.

You're pretty much limited by font-lock's capabilities.
Which means no support for incremental multiline colorizing.
No surprise you encounter the same problems.

> I'm pretty sure the indentation will not be a big issue for me.

Then any mode should please you: in ocaml-mode colorizing is less than
100 lines (just regular expression, that you may twiddle yourself if
you want), while indentation is more than 1000 (most of caml.el).
There is a huge gap in complexity, because caml syntax is so
unstructured.

Jacques Garrigue
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners