forked from qt-creator/qt-creator
Stop at the T_COMMA when searching backward for an expression.
This commit is contained in:
@@ -51,6 +51,7 @@ int ExpressionUnderCursor::startOfExpression(BackwardsScanner &tk, int index)
|
|||||||
const SimpleToken &tok = tk[index - 1];
|
const SimpleToken &tok = tk[index - 1];
|
||||||
|
|
||||||
switch (tok.kind()) {
|
switch (tok.kind()) {
|
||||||
|
case T_COMMA:
|
||||||
case T_LPAREN:
|
case T_LPAREN:
|
||||||
case T_LBRACKET:
|
case T_LBRACKET:
|
||||||
case T_LBRACE:
|
case T_LBRACE:
|
||||||
|
Reference in New Issue
Block a user