Lines Matching refs:pos_
39 self.pos_ = 0
58 column = self.pos_ - self.line_start_ + 1
64 start = self.pos_
73 self.pos_ += 1
75 self.line_start_ = self.pos_
78 self.pos_ += (2 if next_char == "\n" else 1)
80 self.line_start_ = self.pos_
84 return (Lexer.COMMENT, text[start:self.pos_], location)
91 cur_char = text[self.pos_] if self.pos_ < limit else None
95 self.pos_ += 1
97 return (Lexer.FILENAME, text[start + 1:self.pos_ - 1], location)
100 self.pos_ += 1
102 return (Lexer.CID, int(text[start + 1:self.pos_], 10), location)
104 self.pos_ += 1
106 glyphclass = text[start + 1:self.pos_]
119 self.pos_ += 1
121 token = text[start:self.pos_]
126 self.pos_ += 2
128 return (Lexer.NUMBER, int(text[start:self.pos_], 16), location)
131 if self.pos_ >= limit or text[self.pos_] != ".":
132 return (Lexer.NUMBER, int(text[start:self.pos_], 10), location)
135 return (Lexer.FLOAT, float(text[start:self.pos_]), location)
137 self.pos_ += 1
139 if self.pos_ >= limit or text[self.pos_] != ".":
140 return (Lexer.NUMBER, int(text[start:self.pos_], 10), location)
143 return (Lexer.FLOAT, float(text[start:self.pos_]), location)
145 self.pos_ += 1
148 self.pos_ += 1
150 if self.pos_ < self.text_length_ and self.text_[self.pos_] == '"':
151 self.pos_ += 1
153 string = re.sub("[\r\n]", "", text[start + 1:self.pos_ - 1])
162 p = self.pos_
165 self.pos_ = p
168 p = self.pos_
171 self.pos_ = p
179 split = re.split(regexp, self.text_[self.pos_:], maxsplit=1)
184 self.pos_ += len(split[0])