diff options
| author | gingerBill <bill@gingerbill.org> | 2019-05-28 12:55:55 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-05-28 12:55:55 +0100 |
| commit | 65e9b4d5f037addeb805169dfdcb78c240ba90cb (patch) | |
| tree | 9c9dedc848e263bb646f6ed1f90bfd255a1f2086 /src | |
| parent | fb3d73cb204e886e0d716f529a64d9549f43c36d (diff) | |
Update parsers
Diffstat (limited to 'src')
| -rw-r--r-- | src/parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |