Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

^diff and ^Only in #1

Closed
kontrafiktion opened this Issue Jul 25, 2012 · 1 comment

Comments

Projects
None yet
2 participants

I missed the ability to color the lines starting with "diff" and "Only in".

I never saw the "Only in" lines in a diff file with many "diff invocations".
In TextMate I wasn't able to get rid of some blue background, but everything else worked fine for me with the following additional patterns:

        <dict>
            <key>match</key>
            <string>^diff.*</string>
            <key>name</key>
            <string>meta.diff.command</string>
        </dict>
        <dict>
            <key>match</key>
            <string>^Only in .*</string>
            <key>name</key>
            <string>meta.diff.only</string>
        </dict>
Owner

infininight commented Sep 4, 2013

Added a bit to these to reduce false positives and changed the scopes to meta.diff.only-in and meta.diff.header.command, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment