package ocp-indent
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=da4ff552f9fc230d7c07f64a8ef89295907bf8d3c581132f05dcf0dd87a172b3
sha512=d734487162ab1373110a4c4d4f83128b21c39ec2d6e6cd1f9708178b190553cf60faebf62483113ceed490d1b9948c6241e798ea81ee266f3ed7fd8113552684
doc/ocp-indent.lib/IndentConfig/index.html
Module IndentConfig
Source
type t = {
i_base : int;
(*indentation values
*)i_type : int;
i_in : int;
i_with : int;
i_match_clause : int;
i_ppx_stritem_ext : int;
i_max_indent : int option;
(*indentation toggles
*)i_strict_with : threechoices;
i_strict_else : threechoices;
i_strict_comments : bool;
i_align_ops : bool;
i_align_params : threechoices;
i_match_tail_cascade : bool;
}
See the man
function to get the details of what the options are supposed to do (or the template .ocp-indent)
Documentation of the indentation options, in the Cmdliner 'Manpage.block' format
String format is "option=value,option2=value,..."
. Commas can be replaced by newlines. Use ?extra
to handle extra options (by side-effects only)
sep should be comma or newline if you want to reparse. Comma by default
Load from the given filename, optionally updating from the given indent instead of the default one. On error, returns the original indent config unchanged and prints a message to stderr. The file may also contain bindings of the form 'syntax=SYNTAX_EXTENSION,...
', that are returned as a the list of their names
Save the given indent config to the given filename; returns true on success
Looks in given and parent directories for a .ocp-indent
configuration file
val local_default :
?path:string ->
unit ->
t * string list * [ `Mod of string | `Pkg of string ] list
Returns the local default configuration, obtained from (in order), the built-in default
, the file ~/.ocp/ocp-indent.conf
, a file .ocp-indent
in the current directory or any parent, and the environment variable OCP_INDENT_CONFIG
. Returns the list of syntax extensions that may have been activated in conf-files as well