[英]Why emacs Tuareg mode shows different color for functions in Ocaml?
Just want to know why Tuareg mode
shows different colour for functions? 只是想知道为什么
Tuareg mode
显示不同颜色的功能?
for example, as shown below, function create_percolation
and index_of
show blue
color and is_open
is in brown color. 例如,如下所示,函数
create_percolation
和index_of
显示blue
, is_open
显示为棕色。
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.
Tuareg是用emacs lisp编写的,它本身对OCaml语法树一无所知,就像OCaml编译器一样。 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?
如果您不喜欢它,那么如何向tuareg模式开发网站提交错误报告?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.