On 8/9/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
Nikolai Weibull wrote:
> The inclusion of syntax/ruby.vim is fine, but the inclusion of
> syntax/xml.vim breaks.
>
> C has this:
>
> syn region    cString         start=+L\="+ skip=+\\\\\|\\"+ end=+"+
> contains=cSpecial,@Spell
>
> which corresponds very closely to the xml one.  In fact, if one
> removes all syntax items in xml.vim that contain @Spell, it works
> fine.  However, if the syn region cString is placed in the xml.vim
> file it breaks.  Isn't that strange?  I'm totally not following this.

I guess (but it's just a guess) that the difference might be in the
including syntax script (the higher-level script which calls xml.vim or
ruby.vim etc.). Check how the inclusion, and the syntax items of the
including syntax which are to be handled by the included syntax, are
defined.

No, ruby.vim, c.vim, and xml.vim are included in the same manner.  And
the fact that xml.vim is included last doesn't matter; I can put it in
any ordering and it still fails.

The file is syntax/context.vim by the way (if I forgot to mention that).

 nikolai

Reply via email to