Why does emacs Tuareg show different color for functions in Ocaml?

Just want to know why is Tuareg mode

showing a different color for functions?

for example, as shown below, the function is create_percolation

both index_of

color blue

and is_open

brown.

Why??

enter image description here

+3


source to share


1 answer


This is just Tuareg's mistake. If the first argument to a function is an entry, Tuareg cannot recognize it as a function definition. Tuareg is written in emacs lisp and doesn't know anything about the OCaml syntax tree itself like the OCaml compiler. Therefore, you should not expect anything perfect from him. If you don't like it, how about submitting a bug report to the tuareg mode development website?



0


source







All Articles