On Jul 3, 8:11 am, Tobia Conforto <[email protected]> wrote:
>
> I should mention that I have :let g:xml_syntax_folding = 1
> in this case TextEnableCodeSnip() works only when the special
> <javascript> tag I define is outside any other tag. It fails if it's
> nested in the rest of the XML document.
>
> If I disable xml_syntax_folding, TextEnableCodeSnip() works as
> described. It would appear that xml.vim does something funny with the
> syntax nesting, to enable folding of XML tags, that interferes with
> it.
>
> Any help will be appreciated.
>

It looks like (from experiment, not through examination of the syntax
file) syntax folding in xml makes <tag>...</tag> pair an "xmlRegion"
group. Try adding "containedin=xmlRegion" or even
"containedin=ALLBUT,xmlComment" to your javascript group.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to