From 65e9b4d5f037addeb805169dfdcb78c240ba90cb Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 28 May 2019 12:55:55 +0100 Subject: Update parsers --- src/parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index a72bd8803..ba2b704f7 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2144,9 +2144,9 @@ Ast *parse_call_expr(AstFile *f, Ast *operand) { } bool prefix_ellipsis = false; - if (is_token_range(f->curr_token)) { + if (f->curr_token.kind == Token_Ellipsis) { prefix_ellipsis = true; - ellipsis = expect_token(f, f->curr_token.kind); + ellipsis = expect_token(f, Token_Ellipsis); } Ast *arg = parse_expr(f, false); -- cgit v1.2.3