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] |