forked from qt-creator/qt-creator
		
	QmlJS reformatter: Fix object literals.
The comma token seems to be invalid. Change-Id: I859fa58ba0ba1e975e0cf1105c2b53aac848fb0d Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
		@@ -667,7 +667,7 @@ protected:
 | 
			
		||||
            out(": ", ast->colonToken);
 | 
			
		||||
            accept(it->value);
 | 
			
		||||
            if (it->next) {
 | 
			
		||||
                out(ast->commaToken);
 | 
			
		||||
                out(",", ast->commaToken); // always invalid?
 | 
			
		||||
                newLine();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
@@ -1117,8 +1117,6 @@ protected:
 | 
			
		||||
 | 
			
		||||
    virtual bool visit(FunctionExpression *ast)
 | 
			
		||||
    {
 | 
			
		||||
        if (!firstOnLine())
 | 
			
		||||
            newLine();
 | 
			
		||||
        out("function ", ast->functionToken);
 | 
			
		||||
        if (!ast->name.isNull())
 | 
			
		||||
            out(ast->identifierToken);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user