package patdiff

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

Install

Dune Dependency

Authors

Maintainers

Sources

patdiff-v0.14.0.tar.gz
sha256=fbe06078bdb58f3e0c165998ecb82de6983a173c62f0f9f3ae4e914e645204e1
md5=12319e1918cf37f2800fd5aef272b398

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 -> Ppx_sexp_conv_lib.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.