Sublime Forum

Ocaml syntax highlight (greedy) comment parsing bug

#1

Hello,

thanks for sublime, once two or three showstoppers will be fixed, I’ll buy the product :smile:

In the objective caml syntax highlight parser, this code trigger an (greedy) bug:

(* double diffScale, double crossoverProb,
void (*TrialSolution)(de_t *, int),
double (*EnergyFunction)(int, double, double *, bool *) *)

it’s a commented out C function proto.
the code following it is grayed as a comment while it is not.
shame on the twos *) *) unbalanced, following each other, but perfectly valid ocaml comment.

0 Likes