On Thursday, July 25, 2013 5:15:05 PM UTC-4, Dmitry Vasiliev wrote:
> I think accuracy is not the right reason for changing the code which have no 
> complaints for 7 years. Especially when this change will make maintenance 
> harder. So if accuracy is the only reason it's better to not touch this code.

I often quote the original log message when merging, usually by doing
--- Start here ---
--- End ---
which is incorrectly highlighted by the existing svn.vim.

So...  it's wrong. I'd like it to be right.

> I don't think diff.vim is the correct comparison. In the diff output there 
> are no any special formats for information messages so all the needed 
> messages should be added as patterns.

Which is exactly the same situation as svn. There are no special formats for 
the delimiter message, so all the needed messages should be added as patterns.

I cloned your repository, updated the svn.vim syntax file, and have been 
running it for a few days. It works great. Patch attached.

I added all the translations svn-1.8.0 is currently using; there's one language 
they haven't gotten the delimiter translated for yet. Maintenance will consist 
of trawling the older svn sources for other delimiter messages, and then adding 
an update now and again when svn adds an update. I don't think it's going to be 
very often at all.

...Stu

-- 
-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


diff --git a/syntax/svn.vim b/syntax/svn.vim
index 83803e3..78d3e7b 100644
--- a/syntax/svn.vim
+++ b/syntax/svn.vim
@@ -2,9 +2,9 @@
 " Language:     Subversion (svn) commit file
 " Maintainer:   Dmitry Vasiliev <dima at hlabs dot org>
 " URL:          https://github.com/hdima/vim-scripts/blob/master/syntax/svn.vim
-" Last Change:  2012-07-21
+" Last Change:  2013-07-23
 " Filenames:    svn-commit*.tmp
-" Version:      1.9
+" Version:      1.9a
 
 " Contributors:
 "   Stefano Zacchiroli
@@ -20,9 +20,36 @@ elseif exists("b:current_syntax")
   finish
 endif
 
-syn region svnText      start="\%^" end="^--.*--$"me=s-1 contains=@Spell
+syn region svnText      start="\%^"
+  \ end="^--This line, and those below, will be ignored--$"me=s-1
+  \ end="^-- Diese und die folgenden Zeilen werden ignoriert --$"me=s-1
+  \ end="^--Esta l?nea y las que est?n debajo ser?n ignoradas--$"me=s-1
+  \ end="^--Cette ligne, et les suivantes ci-dessous, seront ignor?es--$"me=s-1
+  \ end="^--Questa linea, e quelle sotto di essa, saranno ignorate--$"me=s-1
+  \ end="^-- ???????????? --$"me=s-1
+  \ end="^--? ? ??? ???? ?????--$"me=s-1
+  \ end="^--Denne linjen og de som er under vil bli ignorert--$"me=s-1
+  \ end="^--Ta linia i nast?pne zostan? zignorowane--$"me=s-1
+  \ end="^--Esta linha, e as abaixo, ser?o ignoradas--$"me=s-1
+  \ end="^--Denna och nedanst?ende rader kommer inte med i loggmeddelandet--$"me=s-1
+  \ end="^--????????????--$"me=s-1
+  \ contains=@Spell
+
+syn region svnRegion
+  \ start="^--This line, and those below, will be ignored--$"
+  \ start="^-- Diese und die folgenden Zeilen werden ignoriert --$"
+  \ start="^--Esta l?nea y las que est?n debajo ser?n ignoradas--$"
+  \ start="^--Cette ligne, et les suivantes ci-dessous, seront ignor?es--$"
+  \ start="^--Questa linea, e quelle sotto di essa, saranno ignorate--$"
+  \ start="^-- ???????????? --$"
+  \ start="^--? ? ??? ???? ?????--$"
+  \ start="^--Denne linjen og de som er under vil bli ignorert--$"
+  \ start="^--Ta linia i nast?pne zostan? zignorowane--$"
+  \ start="^--Esta linha, e as abaixo, ser?o ignoradas--$"
+  \ start="^--Denna och nedanst?ende rader kommer inte med i loggmeddelandet--$"
+  \ start="^--????????????--$"
+  \ end="\%$" contains=ALL
 
-syn region svnRegion    start="^--.*--$" end="\%$" contains=ALL
 syn match svnRemoved    "^D    .*$" contained
 syn match svnRenamed    "^R[ M][ U][ +] .*$" contained
 syn match svnAdded      "^A[ M][ U][ +] .*$" contained
@@ -31,7 +58,18 @@ syn match svnProperty   "^_M[ U]  .*$" contained
 
 " Synchronization.
 syn sync clear
-syn sync match svnSync  grouphere svnRegion "^--.*--$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^--This line, and those below, will be ignored--$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^-- Diese und die folgenden Zeilen werden ignoriert --$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^--Esta l?nea y las que est?n debajo ser?n ignoradas--$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^--Cette ligne, et les suivantes ci-dessous, seront ignor?es--$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^--Questa linea, e quelle sotto di essa, saranno ignorate--$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^-- ???????????? --$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^--? ? ??? ???? ?????--$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^--Denne linjen og de som er under vil bli ignorert--$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^--Ta linia i nast?pne zostan? zignorowane--$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^--Esta linha, e as abaixo, ser?o ignoradas--$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^--Denna och nedanst?ende rader kommer inte med i loggmeddelandet--$"me=s-1
+syn sync match svnSync  grouphere svnRegion "^--????????????--$"me=s-1
 
 " Define the default highlighting.
 " For version 5.7 and earlier: only when not done already.

Raspunde prin e-mail lui