Improve is_comment_or_docstring to allow a TextBlock instead of a TextCursor