package ocp-indent-nlfork
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=d3ab3fc0b28674bdd2debe9ada1e5564
sha512=dc13da22e286b8f8005b2ec50e790ff48e80535747fe84a832a29879e482de32d14185a30dd1c8eaf7a6e5c6a700144eb862bb7fab4c8e1c99b7eb5fc271a09f
doc/ocp-indent-nlfork.lib/IndentBlock/index.html
Module IndentBlockSource
Indenter block
reverse block updates the stack to account for the original indentation, assumed as correct. Useful for partial indentation
Return the padding of the block, ie expected relative indentation of sub-blocks
update t str tok computes the new block state after processing the token tok in block t. The next tokens can be observed in the stream str.
guess_indent line block For indenting empty lines: attempt to guess what the most probable indent at this point would be
True only when the block is at the root of the file (the stack is empty, the block isn't included in any syntactical construct).
Returns true if the given block is at a top-level declaration level, ie not within any expression or type definition, but possibly inside a module, signature or class definition.