Here is a suggestion for a function ispell-comment-or-string for spell checking of current comment or string, see attachement.