PythonSyntax::Identation::Type PythonSyntax::FindIdentationType(CodeEditor& editor, const WString& line) { Identation::Type type = Identation::None; if(line.StartsWith("\t")) type = Identation::Tab; else if(line.StartsWith(" ")) type = Identation::Space; else { for(int i = 0; i < editor.GetLineCount(); i++) { WString cLine = editor.GetWLine(i); if(cLine.StartsWith("\t")) { type = Identation::Tab; break; } else if(cLine.StartsWith(" ")) { type = Identation::Space; break; } } } return type; }