QScintilla/TypingCompleters/CompleterPython.py

changeset 91
f20b944b9c8c
parent 86
778f405e9411
child 97
c4086afea02b
equal deleted inserted replaced
90:6de42151f9e6 91:f20b944b9c8c
175 175
176 # colon 176 # colon
177 # skip colon, dedent to if for else: 177 # skip colon, dedent to if for else:
178 elif char == ':': 178 elif char == ':':
179 text = self.editor.text(line) 179 text = self.editor.text(line)
180 if col < len(text) and char == txt[col]: 180 if col < len(text) and char == text[col]:
181 if self.__colonDetection: 181 if self.__colonDetection:
182 self.editor.setSelection(line, col, line, col + 1) 182 self.editor.setSelection(line, col, line, col + 1)
183 self.editor.removeSelectedText() 183 self.editor.removeSelectedText()
184 else: 184 else:
185 txt = text[:col] 185 txt = text[:col]

eric ide

mercurial