If the order of files is going to be wrong, it should be wrong on the vastly less used style: the older context format, not the newer unified format.
Signed-off-by: Felipe Contreras <[email protected]> --- runtime/syntax/diff.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/syntax/diff.vim b/runtime/syntax/diff.vim index ac43d6650..31ca835bf 100644 --- a/runtime/syntax/diff.vim +++ b/runtime/syntax/diff.vim @@ -350,9 +350,9 @@ syn match diffFile "^Index: .*" syn match diffFile "^==== .*" " Old style diff uses *** for old and --- for new. " Unified diff uses --- for old and +++ for new; names are wrong but it works. -syn match diffOldFile "^+++ .*" -syn match diffOldFile "^\*\*\* .*" -syn match diffNewFile "^--- .*" +syn match diffNewFile "^+++ .*" +syn match diffNewFile "^\*\*\* .*" +syn match diffOldFile "^--- .*" " Used by git syn match diffIndexLine "^index \x\x\x\x.*" -- 2.30.0 -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20201230163823.550529-2-felipe.contreras%40gmail.com.
