QScintilla/TypingCompleters/CompleterRuby.py

changeset 431
96cc7d322f89
parent 97
c4086afea02b
child 791
9ec2ac20e54e
equal deleted inserted replaced
429:dcc623c99907 431:96cc7d322f89
82 self.editor.insert(')') 82 self.editor.insert(')')
83 83
84 # closing parenthesis 84 # closing parenthesis
85 # skip matching closing parenthesis 85 # skip matching closing parenthesis
86 elif char in [')', '}', ']']: 86 elif char in [')', '}', ']']:
87 if char == self.editor.text(line)[col]: 87 txt = self.editor.text(line)
88 if col < len(txt) and char == txt[col]:
88 if self.__skipBrace: 89 if self.__skipBrace:
89 self.editor.setSelection(line, col, line, col + 1) 90 self.editor.setSelection(line, col, line, col + 1)
90 self.editor.removeSelectedText() 91 self.editor.removeSelectedText()
91 92
92 # space 93 # space

eric ide

mercurial