QScintilla/Lexers/LexerPython.py

changeset 6105
cbd34d558bd9
parent 6048
82ad8ec9548c
child 6247
5c677a7f7d51
equal deleted inserted replaced
6102:a5b9f6a38faf 6105:cbd34d558bd9
81 81
82 @param line line to perform the calculation for (integer) 82 @param line line to perform the calculation for (integer)
83 @param editor QScintilla editor 83 @param editor QScintilla editor
84 @return amount of difference in indentation (integer) 84 @return amount of difference in indentation (integer)
85 """ 85 """
86 indent_width = Preferences.getEditor('IndentWidth') 86 indent_width = editor.getEditorConfig('IndentWidth')
87 87
88 lead_spaces = editor.indentation(line) 88 lead_spaces = editor.indentation(line)
89 89
90 pline = line - 1 90 pline = line - 1
91 while pline >= 0 and re.match('^\s*(#.*)?$', editor.text(pline)): 91 while pline >= 0 and re.match('^\s*(#.*)?$', editor.text(pline)):

eric ide

mercurial