Hi,
Steve Dondley schrieb am 07.09.2021 um 13:47:
> I'm have a tough time turning off spell checking for words that immediately follow a punctuation character.
>
> For example, I don't want any of the words in this path to be spellchecked:
>
> /kjkj/kasjdf/kjdsf
>
> So I did:
>
> syn match UrlNoSpell '[\/]w\+' contains=@NoSpell
>
> This works.
>
> However, this doesn't:
>
> syn match UrlNoSpell '[:punct:]w\+' contains=@NoSpell
the syntax for a character class inside a collection is wrong. You
need to use two sets of brackets, i.e.,
syn match UrlNoSpell '[[:punct:]]\w\+' contains=@NoSpell
(I assume the missing backslash before w\+ was just a typo in your mail
or the result of some backslash interpretation by you mail client.)
Regards,
Jürgen