package patdiff

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

Install

Dune Dependency

Authors

Maintainers

Sources

patdiff-v0.16.0.tar.gz
sha256=60661ffca35e4726c40c42901774976f2634ac6a4f993a5a13f2fa458571cf16

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.