hs-inside-comment-p

hs-inside-comment-p is a compiled Lisp function in `hideshow.el'.

(hs-inside-comment-p)

Return non-nil if point is inside a comment, otherwise nil.
Actually, return a list containing the buffer position of the start
and the end of the comment. A comment block can be hidden only if on
its starting line there is only whitespace preceding the actual comment
beginning. If we are inside of a comment but this condition is not met,
we return a list having a nil as its car and the end of comment position
as cdr.