QScintilla/TypingCompleters/CompleterPython.py

changeset 431
96cc7d322f89
parent 97
c4086afea02b
child 791
9ec2ac20e54e
equal deleted inserted replaced
429:dcc623c99907 431:96cc7d322f89
121 self.editor.insert(')') 121 self.editor.insert(')')
122 122
123 # closing parenthesis 123 # closing parenthesis
124 # skip matching closing parenthesis 124 # skip matching closing parenthesis
125 elif char in [')', '}', ']']: 125 elif char in [')', '}', ']']:
126 if char == self.editor.text(line)[col]: 126 txt = self.editor.text(line)
127 if col < len(txt) and char == txt[col]:
127 if self.__skipBrace: 128 if self.__skipBrace:
128 self.editor.setSelection(line, col, line, col + 1) 129 self.editor.setSelection(line, col, line, col + 1)
129 self.editor.removeSelectedText() 130 self.editor.removeSelectedText()
130 131
131 # space 132 # space

eric ide

mercurial