简体   繁体   中英

Why emacs Tuareg mode shows different color for functions in Ocaml?

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??

在此输入图像描述

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM