Lines Matching refs:nextchar
138 nextchar = self._pushback_chars.pop()
140 nextchar = self.instream.read(1)
141 if nextchar == '\n':
145 nextchar))
150 if not nextchar:
153 elif nextchar in self.whitespace:
160 elif nextchar in self.commenters:
163 elif self.posix and nextchar in self.escape:
165 self.state = nextchar
166 elif nextchar in self.wordchars:
167 self.token = nextchar
169 elif nextchar in self.punctuation_chars:
170 self.token = nextchar
172 elif nextchar in self.quotes:
174 self.token = nextchar
175 self.state = nextchar
177 self.token = nextchar
180 self.token = nextchar
187 if not nextchar: # end of file
192 if nextchar == self.state:
194 self.token += nextchar
199 elif (self.posix and nextchar in self.escape and self.state
202 self.state = nextchar
204 self.token += nextchar
206 if not nextchar: # end of file
214 nextchar != self.state and nextchar != escapedstate):
216 self.token += nextchar
219 if not nextchar:
222 elif nextchar in self.whitespace:
230 elif nextchar in self.commenters:
240 if nextchar in self.punctuation_chars:
241 self.token += nextchar
243 if nextchar not in self.whitespace:
244 self._pushback_chars.append(nextchar)
247 elif self.posix and nextchar in self.quotes:
248 self.state = nextchar
249 elif self.posix and nextchar in self.escape:
251 self.state = nextchar
252 elif (nextchar in self.wordchars or nextchar in self.quotes
254 nextchar not in self.punctuation_chars)):
255 self.token += nextchar
258 self._pushback_chars.append(nextchar)
260 self.pushback.appendleft(nextchar)