mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 06:45:47 -04:00
Strip semicolons; Make odin strip-semicolon replace .. with ..= if used as a binary operator
This commit is contained in:
1 parent
3bf005bfc5
commit
0434281f73
21 files changed
+999
-968
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user