Stop at the T_COMMA when searching backward for an expression.

This commit is contained in:
Roberto Raggi
2009-10-12 12:25:22 +02:00
parent 99c3327719
commit 8ccc07a10b

View File

@@ -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: