[SVN] OCaml bug report
David Powers
david at grayskies.net
Sun Feb 11 14:44:20 UTC 2007
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 <throw-away-1 at macromates.com> 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
> textmate-dev at lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate-dev
>
More information about the textmate-dev
mailing list