@NoSpell in matchgroup and @NoSpell with TOP
- Hi all,
I've reached an impasse regarding the situations mentioned in the subject, which are somehow similar:
* I would like to use @Spell or @NoSpell for a matchgroup. Say the start pattern is an opening xml tag and the end pattern is its closing tag, then I want to highlight them according to their matchgroup but don't spellcheck them.
* I would like to use the special groups ALL, ALLBUT, TOP, CONTAINED combined with @Spell and @NoSpell.
I know I could rework my syntax rules to avoid the above requirements, I'm not asking for complete refactoring advice. Just for the shortest path from the stated requirements to the capabilities vim does provide.
For circumventing the first one I could define a Tag region containing a TagContent region, that way avoiding the need to use matchgroups for the tags. But then I should explicitly skip the opening and closing tags in TagContent, which is a bit repetitive.
For the second item I guess I could define a cluster like:
syn cluster _TOP_ contains=TOP
and then use it like:
which looks a bit hackish.
Well any suggestions would be very much appreciated.
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
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.