Enable include completion also for ObjectiveC's 'import'

This commit is contained in:
Daniel Molkentin
2009-07-31 16:34:23 +02:00
parent 4967280449
commit bf755ad118

View File

@@ -669,7 +669,8 @@ static int startOfOperator(TextEditor::ITextEditable *editor,
break;
const SimpleToken &previousToken = tokens.at(i - 1);
if (previousToken.is(T_IDENTIFIER)) {
if (previousToken.text() == QLatin1String("include")) {
if (previousToken.text() == QLatin1String("include") ||
previousToken.text() == QLatin1String("import")) {
include = true;
break;
}