Saturday, May 20, 2017

Spell checking a word straddling @Spell and @NoSpell

Hi folks

If a word straddles two syntax items, and the first allows spell checking but
the second does not, then spell checking still occurs on the word as a whole.

So it looks like the spell clusters define where spell checking can
start, but not where it stops. Is this intentional? If so, is it in the
documentation? Nothing leapt out at me, so maybe the documentation at
`:help spell-syntax` could do with additional details in that case.

Example:

:new
:set spell
:put='xxxwordxxx'
:syn match search 'xxx' contains=@NoSpell

'wordxxx' is highlighted as a bad word.

Version 8.0.046

--Antony

--
--
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@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment