我通过opam安装了ocp-indent 1.4.2。它适用于大多数ocaml文件,但无法正确缩进eliom文件。例如以下
{shared{
open Eliom_lib
}}
缩进为
{shared{
open Eliom_lib
}}
命令ocp-indent --print-config给出
base = 2
type = 2
in = 0
with = 0
match_clause = 2
ppx_stritem_ext = 2
max_indent = 2
strict_with = never
strict_else = always
strict_comments = false
align_ops = true
align_params = auto
syntax = mll lwt
配置错了吗?