Ingo Karkat wrote:

> On 19-Jul-2013 05:57 +0200, studog wrote:
> 
> > On Thursday, July 18, 2013 4:15:22 PM UTC-4, Marcin Szamotulski wrote:
> >> Writting a pattern which has to match all the languages is not the best
> >> idea.  But maybe refining the pattern would help:
> >>
> >> ^--[a-zA-Z ,^-]\{-}--$
> > 
> > No, I mean:
> > 
> > syn region svnRegion
> > start="^--This line, and those below, will be ignored--$"
> > start="^--<German language text>--$"
> > start="^--<French language text>--$"
> > ...
> > end="\%$" contains=ALL
> > 
> > since syn region can take multiple start conditions.
> 
> Yes, I would go with that (though it's some effort to maintain). I
> remember seeing some syntax file that did this (but can't find the
> reference right now).

Does the pattern actually match in the wrong place?

Translations will change over time, so the syntax file gets outdated.
It's only worth the effort if we actually need to match the text to
avoid highlighting the wrong line.

-- 
A consultant is a person who takes your money and annoys your employees while
tirelessly searching for the best way to extend the consulting contract.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui