This is because the OCaml compiler has the same behavior.  If you try
to compile:

let main () =
 Printf.printf "foo"   (* this "is a comment *)
;;

let () = main ()

you will get:

ocamlfind ocamlc -o /tmp/ocaml3nhkjj -I
/opt/local/godi/lib/ocaml/std-lib/threads -package '' -linkpkg str.cma
unix.cma threads.cma /tmp/ocamlGOEucv.ml 2>&1
File "-", line 2, characters 24-26:
This comment contains an unterminated string literal


On 2/11/07, Allan Odgaard <[EMAIL PROTECTED]> wrote:
On 7. Dec 2006, at 20:23, Benjamin Ylvisaker wrote:

> When a comment in an ocaml file has a single double quote in it (e.g.,
> (* " *)).  The syntax highlighter seems to get confused, and think
> that the comment is not closed.

It seems to be quite deliberate (parsing strings in comments) -- one
of the OCaml maintainers would have to tell the reason for this.


_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/mailman/listinfo/textmate-dev


_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/mailman/listinfo/textmate-dev

Reply via email to