3

Just want to know why Tuareg mode shows different colour for functions?

for example, as shown below, function create_percolation and index_of show blue color and is_open is in brown color.

Why??

enter image description here

rgrinberg
  • 9,638
  • 7
  • 27
  • 44
Jackson Tale
  • 25,428
  • 34
  • 149
  • 271
  • 2
    It is simply a bug of Tuareg. If the first arg of function is a record, Tuareg fails to recognize it as a function definition. Tuareg is written in emacs lisp and itself knows nothing about OCaml syntax tree like OCaml compiler does. So you should not expect something perfect from it. If you do not like it, how about submit a bug report to tuareg mode development website? – camlspotter Feb 19 '13 at 06:20
  • @camlspotter Maybe you can write your comments as answer? – Jackson Tale Feb 19 '13 at 09:51

1 Answers1

0

It is simply a bug of Tuareg. If the first arg of function is a record, Tuareg fails to recognize it as a function definition. Tuareg is written in emacs lisp and itself knows nothing about OCaml syntax tree like OCaml compiler does. So you should not expect something perfect from it. If you do not like it, how about submit a bug report to tuareg mode development website?

Michaël Le Barbier
  • 6,103
  • 5
  • 28
  • 57