OCaml parser treats braces as comment
Brought to you by:
alnd
I was trying to use cloc with OCaml code and getting odd results. From --wriate-lang-def it looks like ocaml is using the same comment regexp as Pascal, which uses { ... } for multi-line comments. OCaml uses braces for sequences and other things so that is not going to work. OCaml only has one comment form: ( ... ) but they can be nested!
Anonymous
Sourceforge ate my asterisks. OCaml comments look like:
(* ... *)
Last edit: Robert Norton 2018-05-09
Oops just realised you moved to github...