summaryrefslogtreecommitdiff
path: root/runtime/syntax/diff.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-02-03 19:13:34 +0100
committerBram Moolenaar <Bram@vim.org>2015-02-03 19:13:34 +0100
commit0122c4070f84e71f15a39fb20ababeffb70757c4 (patch)
tree3849d34c18c14b9fd2ca465269515a887843d947 /runtime/syntax/diff.vim
parentc0a37b9db38e722b9e5ac3ac8b4c4af86bdf018c (diff)
downloadvim-git-0122c4070f84e71f15a39fb20ababeffb70757c4.tar.gz
Update runtime files.
Diffstat (limited to 'runtime/syntax/diff.vim')
-rw-r--r--runtime/syntax/diff.vim20
1 files changed, 12 insertions, 8 deletions
diff --git a/runtime/syntax/diff.vim b/runtime/syntax/diff.vim
index ff69c5860..885feaebd 100644
--- a/runtime/syntax/diff.vim
+++ b/runtime/syntax/diff.vim
@@ -2,7 +2,7 @@
" Language: Diff (context or unified)
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Translations by Jakson Alves de Aquino.
-" Last Change: 2015 Jan 07
+" Last Change: 2015 Feb 03
" Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
@@ -123,13 +123,17 @@ syn match diffNoEOL "^\\ Non hai un salto de liña na fin da liña"
syn match diffCommon "^Subdirectorios comúns: .* e .*"
" he
-syn match diffOnly "^.*-ב קר אצמנ .*"
-syn match diffIdentical "^םיהז םניה .*-ו .* םיצבקה$"
-syn match diffDiffer "^הזמ הז םינוש `.*'-ו `.*' םיצבקה$"
-syn match diffBDiffer "^הזמ הז םינוש `.*'-ו `.*' םיירניב םיצבק$"
-syn match diffIsA "^.* .*-ל .* .* תוושהל ןתינ אל$"
-syn match diffNoEOL "^\\ ץבוקה ףוסב השד.-הרוש ות רס."
-syn match diffCommon "^.*-ו .* :תוהז תויקית-תת$"
+" ^.* are expansive patterns for long lines, so disabled unless we can match
+" some specific hebrew chars
+if search('\%u05d5\|\%u05d1', 'nw', '', 100)
+ syn match diffOnly "^.*-ב קר אצמנ .*"
+ syn match diffIdentical "^םיהז םניה .*-ו .* םיצבקה$"
+ syn match diffDiffer "^הזמ הז םינוש `.*'-ו `.*' םיצבקה$"
+ syn match diffBDiffer "^הזמ הז םינוש `.*'-ו `.*' םיירניב םיצבק$"
+ syn match diffIsA "^.* .*-ל .* .* תוושהל ןתינ אל$"
+ syn match diffNoEOL "^\\ ץבוקה ףוסב השד.-הרוש ות רס."
+ syn match diffCommon "^.*-ו .* :תוהז תויקית-תת$"
+endif
" hr
syn match diffOnly "^Samo u .*"