'Generate string matching state rules.'

def GenQuotedState(self):

    for (i, q) in enumerate(self.quot):
        label = ('%s_STRING' % i)
        escaped = q.encode('string_escape')
        self._AddToken(label, escaped, 'PopState', None)
        self._AddToken(label, q, 'PopState', None)
        if self.ml_quote:
            self._AddToken(label, '\\n', None, None)
        else:
            self._AddToken(label, '\\n', 'BadLine', None)
        self._AddToken(label, '.', 'AddToField', None)
