Hi,
when a ocaml file contains a string with "*)" then editing a match will
result in some endless loop at 100% cpu usage.
To reproduce, create an ocaml file with the following content:
let foo = "*)" in
match foo with
| _ -> ()
1. position the cursor on the last line at the very end.
2. press ENTER to create a new line
3. press the pipe key
4. observe how vim becomes unresponsive and consumes 100% cpu
I only managed to come back to vim after pressing CTRL+C
It doesnt matter where in the file the string containing "*)" is located.