Improved check for "scope token"

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

Done with Roberto Raggi.
This commit is contained in:
Thorbjørn Lindeijer
2009-03-26 11:22:47 +01:00
parent 5c9fd00d35
commit 208adbaaca

View File

@@ -437,7 +437,7 @@ static int startOfOperator(TextEditor::ITextEditable *editor,
} else if (wantFunctionCall && ch == QLatin1Char('(')) {
k = T_LPAREN;
--start;
} else if (ch2 == QLatin1Char(':') && ch == QLatin1Char(':')) {
} else if (ch3 != QLatin1Char(':') && ch2 == QLatin1Char(':') && ch == QLatin1Char(':')) {
k = T_COLON_COLON;
start -= 2;
} else if (ch2 == QLatin1Char('-') && ch == QLatin1Char('>')) {