Nikolai Weibull wrote:
In my syntax/context.vim I include a bunch of other syntaxes. All
work fine except for the xml one, as spell-checking stops working when
it's included. It seems to be due to the fact that there are items in
the xml syntax that are marked to contain @Spell. This seems to set
off the default of having everything be spell-checked. The context
syntax does have a bunch of @NoSpell, however, and other syntaxes
included, such as those for c and ruby, include @Spell containments as
well. I don't quite understand why this is happening, so perhaps
someone with better knowledge of the @Spell/@NoSpell rules could help
me out.
Also, is there a way to say that spell-checking should be on
everywhere, even though @Spell has been set for some definitions?
Thanks.
nikolai
IIUC, there are 4 possibilities:
- with neither [EMAIL PROTECTED] nor [EMAIL PROTECTED] anywhere in the
syntax script, spell checking is used throughout.
- with only [EMAIL PROTECTED], only those items are spell-checked.
- with only [EMAIL PROTECTED], everything is spell-checked except those
items;
- with both, only "[EMAIL PROTECTED]" items are checked, but not the items
contained in them which have "[EMAIL PROTECTED]".
But I haven't read the doc very thoroughly on that matter. You may have
to read ":help syntax.txt" attentively while comparing it with what your
various syntax scripts are doing. In particular, when including the XML
syntax, you may need to set an all-encompassing top-level group with
@Spell explicitly set, and set @NoSpell on items representing embedded
XML in the higher-level code. (Not sure though: better check it yourself.)
Best regards,
Tony.