Commit 208adbaa authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Improved check for "scope token"

For example, don't keep triggering scope completion on bunch of colons.

Done with Roberto Raggi.
parent 5c9fd00d
...@@ -437,7 +437,7 @@ static int startOfOperator(TextEditor::ITextEditable *editor, ...@@ -437,7 +437,7 @@ static int startOfOperator(TextEditor::ITextEditable *editor,
} else if (wantFunctionCall && ch == QLatin1Char('(')) { } else if (wantFunctionCall && ch == QLatin1Char('(')) {
k = T_LPAREN; k = T_LPAREN;
--start; --start;
} else if (ch2 == QLatin1Char(':') && ch == QLatin1Char(':')) { } else if (ch3 != QLatin1Char(':') && ch2 == QLatin1Char(':') && ch == QLatin1Char(':')) {
k = T_COLON_COLON; k = T_COLON_COLON;
start -= 2; start -= 2;
} else if (ch2 == QLatin1Char('-') && ch == QLatin1Char('>')) { } else if (ch2 == QLatin1Char('-') && ch == QLatin1Char('>')) {
......
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