Skip to content

Commit d72fad6

Browse files
committed
Строгая проверка закрывающей круглой скобки. Fix #1
1 parent c6a2f71 commit d72fad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/annimon/ownlang/parser/Parser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ private Expression unary() {
703703
private Expression primary() {
704704
if (match(TokenType.LPAREN)) {
705705
Expression result = expression();
706-
match(TokenType.RPAREN);
706+
consume(TokenType.RPAREN);
707707
return result;
708708
}
709709

0 commit comments

Comments
 (0)