From 23ab3c47131bb30c61714b6572e74e44ec64e8d7 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 13 Feb 2018 21:59:49 +0000 Subject: Replace [...] with [?] --- 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 e37dffe25..8dd5d6d30 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1770,8 +1770,8 @@ AstNode *parse_operand(AstFile *f, bool lhs) { AstNode *count_expr = nullptr; bool is_vector = false; - if (f->curr_token.kind == Token_Ellipsis) { - count_expr = ast_unary_expr(f, expect_token(f, Token_Ellipsis), nullptr); + if (f->curr_token.kind == Token_Question) { + count_expr = ast_unary_expr(f, expect_token(f, Token_Question), nullptr); } else if (allow_token(f, Token_dynamic)) { expect_token(f, Token_CloseBracket); return ast_dynamic_array_type(f, token, parse_type(f)); -- cgit v1.2.3