QScintilla/TypingCompleters/CompleterRuby.py

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