ultisnips icon indicating copy to clipboard operation
ultisnips copied to clipboard

Add spell-checking to snippet comments

Open RomFouq opened this issue 5 years ago • 2 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:

RomFouq avatar Jun 01 '19 18:06 RomFouq

Patch is welcome.

SirVer avatar Oct 20 '19 20:10 SirVer

Can I get this?

abhinavjonnada82 avatar Oct 02 '20 03:10 abhinavjonnada82