diff options
| author | gingerBill <bill@gingerbill.org> | 2018-02-13 21:59:49 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-02-13 21:59:49 +0000 |
| commit | 23ab3c47131bb30c61714b6572e74e44ec64e8d7 (patch) | |
| tree | 7a91e1a96dcdcffe187e378709c4dbf3deaeb5e9 /src/parser.cpp | |
| parent | da300aa9c352e9fa4a99b2368d0268be834bfa81 (diff) | |
Replace [...] with [?]
Diffstat (limited to 'src/parser.cpp')
| -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 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)); |