Add documentation for supported diff file extensions

Added XML documentation to clarify the purpose and usage of .diff, .patch, and .rej file extensions in DiffHighlightingDefinition.
This commit is contained in:
ema
2026-01-16 14:53:56 +08:00
parent 354b48a2b5
commit d8fbc338ca

View File

@@ -27,6 +27,12 @@ public class DiffHighlightingDefinition : DarkHighlightingDefinition
{
public override string Name => "Diff";
/// <summary>
/// * .diff / .patch: text-based patch files that record differences between two versions of a file,
/// typically generated by tools like diff or git diff, used for code review or applying patches
/// * .rej: reject file created when a patch cannot be applied, containing the portions of the patch
/// that failed, for manual resolution
/// </summary>
public override string Extension => ".diff;.patch;.rej";
public override HighlightingRuleSet MainRuleSet => new()