File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -626,21 +626,24 @@ std::unique_ptr<Expr> Parser::parsePrimaryExpr() {
626626 assertToken (" SyntaxToken::OPEN_PARENTHESIS" , " Expected '(' to start parenthesised expression." );
627627 while (true ) {
628628 i++;
629- if (lookAhead (i).tag == Token::TypeTag::SYNTAX && lookAhead (i).type .syntaxToken == SyntaxToken::OPEN_PARENTHESIS) {
629+ if (lookAhead (i).tag == Token::TypeTag::SYNTAX &&
630+ lookAhead (i).type .syntaxToken == SyntaxToken::OPEN_PARENTHESIS) {
630631 scope++;
631- } else if (lookAhead (i).tag == Token::TypeTag::SYNTAX && lookAhead (i).type .syntaxToken == SyntaxToken::CLOSE_PARENTHESIS) {
632+ } else if (lookAhead (i).tag == Token::TypeTag::SYNTAX &&
633+ lookAhead (i).type .syntaxToken == SyntaxToken::CLOSE_PARENTHESIS) {
632634 if (scope == 0 ) {
633635 break ;
634636 }
635637 scope--;
636638 }
637639 }
638- if (lookAhead (i + 1 ).tag == Token::TypeTag::SYNTAX && lookAhead (i + 1 ).type .syntaxToken == SyntaxToken::CALLBACK) {
640+ if (lookAhead (i + 1 ).tag == Token::TypeTag::SYNTAX &&
641+ lookAhead (i + 1 ).type .syntaxToken == SyntaxToken::CALLBACK) {
639642 expression = parseCallbackFunctionExpr ();
640643 } else {
641644 expression = parseExpression ();
642645 assertToken (" SyntaxToken::CLOSE_PARENTHESIS" ,
643- " Unexpected token found inside parenthesised expression. Expected closing parenthesis." );
646+ " Unexpected token found inside parenthesised expression. Expected closing parenthesis." );
644647 }
645648 return expression;
646649 case SyntaxToken::DOUBLE_QUOTE:
You can’t perform that action at this time.
0 commit comments