package ocp-indent-nlfork
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
md5=d3ab3fc0b28674bdd2debe9ada1e5564
    
    
  sha512=dc13da22e286b8f8005b2ec50e790ff48e80535747fe84a832a29879e482de32d14185a30dd1c8eaf7a6e5c6a700144eb862bb7fab4c8e1c99b7eb5fc271a09f
    
    
  doc/ocp-indent-nlfork.lib/IndentConfig/index.html
Module IndentConfig
type t = {i_base : int;i_type : int;i_in : int;i_with : int;i_match_clause : int;i_ppx_stritem_ext : int;i_max_indent : int option;i_strict_with : threechoices;i_strict_else : threechoices;i_strict_comments : bool;i_align_ops : bool;i_align_params : threechoices;
}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
type man_block = [ | `S of string| `P of string| `Pre of string| `I of string * string| `Noblank| `Blocks of man_block list
 ]val man : man_block listval default : tString format is "option=value,option2=value,...". Commas can be replaced by newlines. Use ?extra to handle extra options (by side-effects only)
val to_string : ?sep:string -> t -> stringsep 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
val save : t -> string -> boolSave 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 ] listReturns 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