The following commit has been merged in the bugs branch: commit 52ea2b4b213bb3e90a5638c4ccf47968d35b7568 Author: Ralf Treinen <trei...@free.fr> Date: Thu May 31 08:11:23 2012 +0200
test files for more bugs diff --git a/207471.ml b/207471.ml new file mode 100644 index 0000000..9aee11c --- /dev/null +++ b/207471.ml @@ -0,0 +1,33 @@ +* *************************** *) +(* Bugs in syntax highlighting *) +(* *************************** *) + +(* "and" keyword *) +type toto = int +and titi = int;; + +let toto = 42 +and rec titi = titi - 2;; + +(* Function declared on several lines *) +let f x y + z = + ();; + +(* Optional arguments *) +let f ?x:(x=[]) y = ();; + + (* ******************* *) + (* Bugs of indentation *) + (* ******************* *) + + (* The *.mly files are not correctly indented. *) + + (* The infix operators && and || are not correctly indented on several lines *) + begin + if a = b || + b = c || + c = d then + () + end + diff --git a/617407.ml b/617407.ml new file mode 100644 index 0000000..df18706 --- /dev/null +++ b/617407.ml @@ -0,0 +1,8 @@ +let test () = + if a then + if b then x + else if c then y + else z + else something (* this "else" should line up with the first "if" *) + +(* fixed in 2.0.6 *) -- tuareg-mode packaging _______________________________________________ Pkg-ocaml-maint-commits mailing list Pkg-ocaml-maint-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits