QScintilla/Editor.py

changeset 2216
3372cf8877c0
parent 2213
022f4ad3ed19
child 2217
e80c74f2a25a
equal deleted inserted replaced
2215:5b49d2731fa3 2216:3372cf8877c0
6677 word = self.getCurrentWord() 6677 word = self.getCurrentWord()
6678 wordStart, wordEnd = self.getCurrentWordBoundaries() 6678 wordStart, wordEnd = self.getCurrentWordBoundaries()
6679 wordStartPos = self.positionFromLineIndex(line, wordStart) 6679 wordStartPos = self.positionFromLineIndex(line, wordStart)
6680 wordEndPos = self.positionFromLineIndex(line, wordEnd) 6680 wordEndPos = self.positionFromLineIndex(line, wordEnd)
6681 6681
6682 print(word, wordStartPos, wordEndPos, "<"+self.text()[wordStartPos:wordEndPos]+">")
6683
6684 regExp = re.compile(r"\b{0}\b".format(word)) 6682 regExp = re.compile(r"\b{0}\b".format(word))
6685 if forward: 6683 if forward:
6686 startPos = wordEndPos 6684 startPos = wordEndPos
6687 else: 6685 else:
6688 startPos = wordStartPos 6686 startPos = wordStartPos

eric ide

mercurial