Automagically insert matching characters.

This commit is contained in:
Roberto Raggi
2009-09-17 17:57:17 +02:00
parent 245dfe51c6
commit 82b80b9e39
7 changed files with 145 additions and 10 deletions

View File

@@ -153,10 +153,8 @@ QString ExpressionUnderCursor::operator()(const QTextCursor &cursor)
return scanner.text(i, initialSize);
}
int ExpressionUnderCursor::startOfFunctionCall(const QTextCursor &cursor)
int ExpressionUnderCursor::startOfFunctionCall(const QTextCursor &cursor) const
{
QString text;
BackwardsScanner scanner(cursor);
int index = scanner.startToken();