code: def _good_token(self, token, offset, start=None):
          
          if start is None:
              start = self.offset
          try:
              comment_index = self.source.rindex('#', start, offset)
          except ValueError:
              return True
          try:
              new_line_index = self.source.rindex('\n', start, offset)
          except ValueError:
              return False
          return comment_index < new_line_index
docs: Checks whether consumed token is in comments