A while ago I posted a question about Lua highlighting in a Vim file
being completely wrong after syntax files were updated. I had no answer,
but now I think I've found the source of the problem: in the Lua syntax
file, some regions which "contains" something have been changed to
"contains" TOP (i.e. not "contained") groups instead of precisely named
groups. On the other hand, the ":syntax include" command adds the
"contained" flag to all items declared in the included file, and so
there are no TOP elements anymore, and the containing regions contain
nothing.
This means that any syntax file which uses TOP for containment can't
be properly included in another one. Is there any workaround? (And isn't
it somewhat buggy behavior, or at least ill-designed?)
Best,
Paul
--
You received this message from the "vim_use" 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
No comments:
Post a Comment