Lumis.Decoration.DiffWord (Lumis v0.10.4)

Copy Markdown View Source

Text that changed between a diff's removed lines and the added lines that replace them.

Emitted only when a diff document is highlighted with word_diff: true. :removed marks text only the removed lines have, :added text only the added lines have. Built-in formatters give it a stronger shade of the theme's diff.minus or diff.plus background.

Summary

Types

kind()

@type kind() :: :removed | :added

t()

@type t() :: %Lumis.Decoration.DiffWord{kind: kind()}