code: def _is_in_comment_type(token_type):
      
      return token_type in [TokenType.Comment,
                            TokenType.Newline,
                            TokenType.Whitespace,
                            TokenType.RST,
                            TokenType.BeginRSTComment,
                            TokenType.BeginInlineRST,
                            TokenType.EndInlineRST]
docs: Return true if this kind of token can be inside a comment.