Page MenuHomePhabricator

Add Arcanist support for highlighting indent change intraline diffs
ClosedPublic

Authored by epriestley on Feb 15 2019, 5:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 30, 3:58 PM
Unknown Object (File)
Sat, Dec 21, 4:01 PM
Unknown Object (File)
Dec 14 2024, 8:57 PM
Unknown Object (File)
Dec 12 2024, 6:52 AM
Unknown Object (File)
Dec 10 2024, 11:24 AM
Unknown Object (File)
Dec 7 2024, 11:20 AM
Unknown Object (File)
Nov 28 2024, 4:45 AM
Unknown Object (File)
Nov 20 2024, 4:27 PM
Subscribers
None

Details

Summary

Ref T13161. See D20181. This allows the intraline highlighter to accept new ">" and "<" spans and apply a different style for them.

The input pattern is list<segment>. Each segment is pair<wild kind, int byte_length>, i.e. wrap the next byte_length bytes in a span of kind kind.

Before this change, the possible kinds of segements are 0 (no intraline diff, do not highlight) or 1 (intraline diff, highlight in bright color).

D20181 adds < (depth decreased) and > (depth increased). These are like 1, but add a different class so the UI can handle them differently.

Test Plan

See D20181.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable