ultisnips
ultisnips copied to clipboard
Add spell-checking to snippet comments
Expected behavior: Misspelled words should be highlighted in snippet file comments.
Actual behavior: They aren't.
Steps to reproduce Write a comment in a snippet definition file, with some misspelled words.
Adding spell-checking
It seems that adding the @Spell
syntax group to snipComment
and snipmateComment
(not tested for this syntax) is enough.
Replacing contains=snipTODO
with contains=snipTODO,@Spell
in https://github.com/SirVer/ultisnips/blob/master/syntax/snippets.vim#L34 fixes the issue, and comments are spell-checked.
I think adding contains=@Spell
in https://github.com/SirVer/ultisnips/blob/master/syntax/snippets_snipmate.vim#L21 should work too, if needed.
Thanks for this plugin, for which it is a breeze to write snippets! :+1:
Patch is welcome.
Can I get this?