0

我通过 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

是不是配置错了?

4

0 回答 0