summaryrefslogtreecommitdiff
path: root/runtime/scripts.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-26 21:06:50 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-26 21:06:50 +0000
commit899dddf88804af20d560b5277f1ca1bc4dd8e2b3 (patch)
tree17525001ae02c1e762f4dd6b383612bd16f7238d /runtime/scripts.vim
parent5c6a2d53232f248c0ba0e4278a447042aa00371e (diff)
downloadvim-git-899dddf88804af20d560b5277f1ca1bc4dd8e2b3.tar.gz
updated for version 7.0b02v7.0b02
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r--runtime/scripts.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim
index 1f82abd6d..9388481db 100644
--- a/runtime/scripts.vim
+++ b/runtime/scripts.vim
@@ -184,10 +184,12 @@ else
" - "*** " in first line and "--- " in second line (context diff).
" - "# It was generated by makepatch " in the second line (makepatch diff).
" - "Index: <filename>" in the first line (CVS file)
+ " - "=== ", line of "=", "---", "+++ " (SVK diff)
elseif s:line1 =~ '^\(diff\>\|Only in \|\d\+\(,\d\+\)\=[cda]\d\+\>\|# It was generated by makepatch \|Index:\s\+\f\+\r\=$\|===== \f\+ \d\+\.\d\+ vs edited\|==== //\f\+#\d\+\)'
\ || (s:line1 =~ '^--- ' && s:line2 =~ '^+++ ')
\ || (s:line1 =~ '^\* looking for ' && s:line2 =~ '^\* comparing to ')
\ || (s:line1 =~ '^\*\*\* ' && s:line2 =~ '^--- ')
+ \ || (s:line1 =~ '^=== ' && s:line2 =~ '^=\{66\}' && s:line3 =~ '^--- ' && s:line4 =~ '^+++')
set ft=diff
" PostScript Files (must have %!PS as the first line, like a2ps output)