Home | History | Annotate | Download | only in python2.7

Lines Matching full:nextchar

124             nextchar = self.instream.read(1)
125 if nextchar == '\n':
129 "I see character:", repr(nextchar)
134 if not nextchar:
137 elif nextchar in self.whitespace:
144 elif nextchar in self.commenters:
147 elif self.posix and nextchar in self.escape:
149 self.state = nextchar
150 elif nextchar in self.wordchars:
151 self.token = nextchar
153 elif nextchar in self.quotes:
155 self.token = nextchar
156 self.state = nextchar
158 self.token = nextchar
161 self.token = nextchar
168 if not nextchar: # end of file
173 if nextchar == self.state:
175 self.token = self.token + nextchar
180 elif self.posix and nextchar in self.escape and \
183 self.state = nextchar
185 self.token = self.token + nextchar
187 if not nextchar: # end of file
195 nextchar != self.state and nextchar != escapedstate:
197 self.token = self.token + nextchar
200 if not nextchar:
203 elif nextchar in self.whitespace:
211 elif nextchar in self.commenters:
220 elif self.posix and nextchar in self.quotes:
221 self.state = nextchar
222 elif self.posix and nextchar in self.escape:
224 self.state = nextchar
225 elif nextchar in self.wordchars or nextchar in self.quotes \
227 self.token = self.token + nextchar
229 self.pushback.appendleft(nextchar)