package patdiff

  1. Overview
  2. Docs
File Diff using the Patience Diff algorithm

Install

Dune Dependency

Authors

Maintainers

Sources

v0.16.1.tar.gz
md5=ed1fd8166e2e99774432c1e28515f37e
sha512=7833f95ce42eeb17ecbef514eab13a37a0ab125b3c6e7e8af09c5b0efa3be6b971c6c4a40f3d809f1c254c8bc720ddaa46b54ff0514ddb9db0f5be03d99f5fd0

doc/patdiff.kernel/Patdiff_kernel/Format/Rule/index.html

Module Format.RuleSource

A rule consists of a styled prefix, a styled suffix, and a style. Rules are applied to strings using functions defined in Output_ops.

Sourcemodule Affix : sig ... end

An affix is either a prefix or a suffix.

Sourcetype t = private {
  1. pre : Affix.t;
  2. suf : Affix.t;
  3. styles : Style.t list;
}
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval create : ?pre:Affix.t -> ?suf:Affix.t -> Style.t list -> t

Rule creation: Most rules have a style, and maybe a prefix. For instance, a line_next rule might have a bold "+" prefix and a green style.

Sourceval blank : t
Sourceval unstyled_prefix : string -> t
Sourceval strip_styles : t -> t
OCaml

Innovation. Community. Security.