Commit bf755ad1 authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

Enable include completion also for ObjectiveC's 'import'

parent 49672804
...@@ -669,7 +669,8 @@ static int startOfOperator(TextEditor::ITextEditable *editor, ...@@ -669,7 +669,8 @@ static int startOfOperator(TextEditor::ITextEditable *editor,
break; break;
const SimpleToken &previousToken = tokens.at(i - 1); const SimpleToken &previousToken = tokens.at(i - 1);
if (previousToken.is(T_IDENTIFIER)) { if (previousToken.is(T_IDENTIFIER)) {
if (previousToken.text() == QLatin1String("include")) { if (previousToken.text() == QLatin1String("include") ||
previousToken.text() == QLatin1String("import")) {
include = true; include = true;
break; break;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment