-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Diff] Refactor for Diff3, Git, and conflicts #4111
base: master
Are you sure you want to change the base?
Conversation
Also include their file modes [Diff] Change file mode highlighting [Diff] Loosen file mode match
Includes the Git Commit Message stuff, because that's what it is.
[Diff] Empty file hash
Technically, this is called the "signature."
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I've brought Conflict.sublime-syntax back in, along with a conservative side-by-side highlighter. A more risky side-by-side syntax at michaelblyons#10 |
31a90d5
to
39a126a
Compare
This comment was marked as resolved.
This comment was marked as resolved.
let us know when/if you need any review or feedback 😁 |
Haha. Sorry if you're flooded in notifications. The PR is a lot better after you and DeathAxe's reviews. I think if you're looking for something, check my PRs to this PR (michaelblyons#11 and michaelblyons#10) and decide if you care about any of the things in the "controversial" heading in OP. Thanks again. |
Empty lines between contexts is ok, but starting arbritary emptly lines between patterns is too much. |
There are places where I have considered newlines in stacked scopes, but I am not planning to add an empty line between meta and includes. PackageDev scoping is sufficient to make that distinction very obvious. |
This commit... 1. adds more detailed scopes to conflict markers 2. adds conflicting blocks to symbol list 3. removes some multi-push and lookaheads 4. adds support for indented fenced diff code blocks (allow markers to be preceded by whitespace)
Unfortunately, line ranges (which start at BOL) cannot be tested.
Big refactor of Diff syntax according to the GNU and SVN documentation. New Git Diff syntax, also used by Git Log.
Thank you to the reviewers!
Notable changes
git am
andgit format-patch
)Potentially controversial
storage.modifier
distinguishes between the two Git file modes (namely644
and755
)++++----
and similar, even though they're not actually markup.