code: def from_text(self, line, line_index, column, is_escaped):
          
          begin = self._begin
          end = self._end
          single = self._single
  
          single_len = len(single)
          start_len = len(begin)
  
          if _token_at_col_in_line(line, column, single, single_len):
              return (STATE_IN_COMMENT,
                      (line_index, column + single_len),
                      ParserState.EOL)
          elif _token_at_col_in_line(line, column, begin, start_len):
              return (STATE_IN_COMMENT,
                      (line_index, column + single_len),
                      end)
          elif ((_token_at_col_in_line(line, column, "\"") or
                 _token_at_col_in_line(line, column, "'")) and
                not _is_escaped(line, column, is_escaped)):
              # Check here to see whether this is a quote or if this
              # is a spellcheckable line
              if (_token_at_col_in_line(line, column, "\"\"\"") or
                      _token_at_col_in_line(line, column, "'''")):
                  return (STATE_IN_COMMENT,
                          (line_index, column + 3),
                          line[column:column + 3])
              else:
                  return (STATE_IN_QUOTE,
                          (line_index, column + 1),
                          line[column:column + 1])
  
          return (STATE_IN_TEXT,
                  (0, 0),
                  None)
docs: Return the new state of the comment parser.