eric6/QScintilla/Lexers/LexerPython.py

changeset 7267
aedc309827c7
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7266:d001bc703c29 7267:aedc309827c7
181 m = re.search(r'(pass\s*(#.*)?$)|(^[^#]return)', 181 m = re.search(r'(pass\s*(#.*)?$)|(^[^#]return)',
182 editor.text(pline)) 182 editor.text(pline))
183 if m: 183 if m:
184 last -= indent_width 184 last -= indent_width
185 185
186 if lead_spaces % indent_width != 0 or lead_spaces == 0 \ 186 if (
187 or self.lastIndented != line: 187 lead_spaces % indent_width != 0 or
188 lead_spaces == 0 or
189 self.lastIndented != line
190 ):
188 indentDifference = last - lead_spaces 191 indentDifference = last - lead_spaces
189 else: 192 else:
190 indentDifference = -indent_width 193 indentDifference = -indent_width
191 194
192 return indentDifference 195 return indentDifference

eric ide

mercurial