Parses Tree-sitter-style captures into structured highlight, fold, symbol, and textobject data.
Summary
Types
@type capture() :: {pos_integer(), non_neg_integer(), pos_integer(), non_neg_integer(), String.t()}
@type span() :: {non_neg_integer(), non_neg_integer(), atom()}
@type t() :: %Drafter.Syntax.TSFeatures{ folds: list(), highlights: %{required(pos_integer()) => [span()]}, symbols: list(), textobjects: list() }