JavaScript parser: properly consume closing brace after a block in findCmdTerm()

This commit is contained in:
Colomban Wendling 2012-09-25 00:18:27 +02:00
parent 74890cc308
commit 205bab83d7

View File

@ -590,6 +590,7 @@ static void findCmdTerm (tokenInfo *const token)
if ( isType (token, TOKEN_OPEN_CURLY)) if ( isType (token, TOKEN_OPEN_CURLY))
{ {
parseBlock (token, token); parseBlock (token, token);
readToken (token);
} }
else if ( isType (token, TOKEN_OPEN_PAREN) ) else if ( isType (token, TOKEN_OPEN_PAREN) )
{ {