Christian Brabandt <[email protected]> wrote:

> On Mo, 26 Jun 2017, Dominique Pellé wrote:
>
>> Hi
>>
>> I noticed that when opening a file CMakeLists.txt (cmake syntax)
>> spell checking highlights spelling mistakes outside of comments.
>> Yet the the runtime/syntax/cmake.vim only enables spell checking
>> in comments.
>>
>> I don't see why this happens. Any idea?
>
> It looks like the @Spell Cluster gets applied, because cmakeArguments
> has this definition
>
> ,----
> |     syn region cmakeArguments start=/(/ end=/)/
> |               \ contains=ALLBUT,cmakeArguments,cmakeTodo
> `----
>
> because of the ALLBUT, it looks like the @Spell cluster does get applied
> as well, so if you change the definition to
>
> ,----
> |     syn region cmakeArguments start=/(/ end=/)/
> |               \ contains=ALLBUT,cmakeArguments,cmakeTodo,@Spell
> `----
>
> Then it works as expected. Not sure if this is a bug in Vim or in the
> syntax script.


Thanks Christian.  I see that runtime/syntax/c.vim also puts @Spell after
contains=ALLBUT,...  It's probably a problem with the runtime/syntax/cmake.vim
syntax file. Adding the maintainer of cmake.vim in CC of this discussion.

Regards
Dominique

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui