Support .patch and .rej extensions for diff highlighting

Added '.patch' and '.rej' to the supported file extensions in DiffHighlightingDefinition to improve compatibility with common diff-related file types.
This commit is contained in:
ema
2026-01-16 13:35:28 +08:00
parent aaf78abf3c
commit 354b48a2b5
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ public class DiffHighlightingDefinition : DarkHighlightingDefinition
{
public override string Name => "Diff";
public override string Extension => ".diff";
public override string Extension => ".diff;.patch;.rej";
public override HighlightingRuleSet MainRuleSet => new()
{