[Github-comments] [geany/geany-plugins] [spellchecker] Apostrophes (`'`, ascii 39) at string boundary are spell-checked (#484)

Enrico Tröger notifications at xxxxx
Sun Sep 18 22:52:55 UTC 2016


Yes, this is a regression from #322.

I tried a quick hack which strips the apostrophe from the word beginning and end if the style before resp. after the word is different. In this context `style` means highlighting types like string, identifier, keyword and similar. This works pretty good for your examples but it fails on Python's triple strings (`'''...'''').

Another, simpler approach could be to strip any apostrophes at word start and end. This might accidentally delete a legit apostrophe like in plural forms of the possessive case (e.g. `The players’ boots`) but this should have no negative effect on spell checking as the rest of the word must be valid anyway, I hope.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/484#issuecomment-247886198
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160918/4236014c/attachment.html>


More information about the Github-comments mailing list