-1

Detect more diff formats

Ash Moran 12 year бұрын 0

I like to use Sublime Text to highlight diffs. On some of my projects I use the Darcs VCS and not git. The diff package in Sublime contains a firstLineMatch regex option for "diff\ --git[ ]". Unfortunately, Darcs produces diff output that starts with "diff -rN -u", not "diff --git".


To fix this, I've hacked my part of the Diff package regex to read "diff[ ]" instead. However in general this would seem the better way to do it? I can't see a reason why files starting "diff" that weren't generated from git should go unhighlighted, unless there's something I'm missing.