QScintilla/TypingCompleters/CompleterPython.py

branch
5_0_x
changeset 430
0b4a8e85a043
parent 97
c4086afea02b
child 791
9ec2ac20e54e
equal deleted inserted replaced
423:3414c60a2a47 430:0b4a8e85a043
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