aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 4433a0a7f..778afbcd6 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -1376,6 +1376,10 @@ Token expect_operator(AstFile *f) {
syntax_error(f->curr_token, "Expected an non-range operator, got '%.*s'",
LIT(p));
}
+ if (f->curr_token.kind == Token_Ellipsis) {
+ f->tokens[f->curr_token_index].flags |= TokenFlag_Replace;
+ }
+
advance_token(f);
return prev;
}