Bug#458630: vim-runtime: the wrong syntax highlight of the program code in Perl

Dmitry E. Oboukhov dimka at avanto.org
Wed Jan 2 19:33:24 UTC 2008


On 12:33 Wed 02 Jan     , James Vega wrote:
JV> On Wed, Jan 02, 2008 at 12:27:29PM +0300, Dmitry E. Oboukhov wrote:
>> For all that in the majority of cases after the open marker (<<endquote)
>> there's needed some statement, for example semicolumn, closing bracket,
>> etc.
>>
>> Example:
>>
>> $dbh->do(<<endsql, undef, $cid);
>> DELETE FROM query
>> WHERE query.id=?
>> endsql
>>
>> Parameters written after open marker will colour wrongly.

JV> Vim's current syntax highlighting capabilities are unable to properly
JV> highlight this.  It's not possible to define a syntax region that skips
JV> highlighting part of the region match.

If it is not possible to select strings by one rule then why not to
select
them by two rules?

For example
1. to consider as strings all the statements of the type:
<<\w+
2. and also to consider as strings all the _strings_ between the string
containing open marker <<(\w+) and the string ^$1$

Excuse me for operating with perl regexp, I haven't studied vim regexp
yet.
:(





More information about the pkg-vim-maintainers mailing list