runtime(diff): fix regex for matching no-eol match
Commit:
https://github.com/vim/vim/commit/5d14da3690a8c02ba7a26477c45c5d32756ddf22
Author: A4-Tacks <
wdsjxh...@163.com>
Date: Thu Jun 26 20:29:18 2025 +0200
runtime(diff): fix regex for matching no-eol match
closes:
https://github.com/vim/vim/issues/17610
Signed-off-by: A4-Tacks <
wdsjxh...@163.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/syntax/diff.vim b/runtime/syntax/diff.vim
index b0a8594de..50efe32c5 100644
--- a/runtime/syntax/diff.vim
+++ b/runtime/syntax/diff.vim
@@ -2,7 +2,7 @@
" Language: Diff (context or unified)
" Maintainer: The Vim Project <
https://github.com/vim/vim>
" Translations by Jakson Alves de Aquino.
-" Last Change: 2023 Aug 10
+" Last Change: 2025 Jun 26
" Former Maintainer: Bram Moolenaar <
Br...@vim.org>
" Quit when a (custom) syntax file was already loaded
@@ -16,7 +16,7 @@ syn match diffIdentical "^Files .* and .* are identical$"
syn match diffDiffer "^Files .* and .* differ$"
syn match diffBDiffer "^Binary files .* and .* differ$"
syn match diffIsA "^File .* is a .* while file .* is a .*"
-syn match diffNoEOL "^\ No newline at end of file .*"
+syn match diffNoEOL "^\ No newline at end of file.*"
syn match diffCommon "^Common subdirectories: .*"
" Disable the translations by setting diff_translations to zero.