QmlJS indenter: Fix for expressions starting with numbers or strings.

Reviewed-by: Roberto Raggi
This commit is contained in:
Christian Kamm
2010-12-09 13:20:13 +01:00
parent abd4a7b931
commit 5f04fbba1a
3 changed files with 38 additions and 5 deletions

View File

@@ -693,6 +693,8 @@ bool CodeFormatter::tryStatement()
case List:
case Property:
case Function:
case Number:
case String:
enter(expression);
// look at the token again
m_tokenIndex -= 1;