Commit 8ccc07a1 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Stop at the T_COMMA when searching backward for an expression.

parent 99c33277
......@@ -51,6 +51,7 @@ int ExpressionUnderCursor::startOfExpression(BackwardsScanner &tk, int index)
const SimpleToken &tok = tk[index - 1];
switch (tok.kind()) {
case T_COMMA:
case T_LPAREN:
case T_LBRACKET:
case T_LBRACE:
......
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