diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-07 23:42:43 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-07 23:42:43 +0100 |
| commit | 4b051a0d3b9da924924ed2a28ef7c102902a880c (patch) | |
| tree | 11ac611a92c608097b1af289d71a6ac21c9b4900 /src/tokenizer.cpp | |
| parent | 45353465a6d743f9c9cbca63c45877a6d294feb5 (diff) | |
`..` half closed range; `...` open range; `...` variadic syntax
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 78833453d..31d1e8933 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -78,8 +78,8 @@ TOKEN_KIND(Token__ComparisonEnd, "_ComparisonEnd"), \ TOKEN_KIND(Token_Semicolon, ";"), \ TOKEN_KIND(Token_Period, "."), \ TOKEN_KIND(Token_Comma, ","), \ - TOKEN_KIND(Token_Ellipsis, ".."), \ - TOKEN_KIND(Token_HalfClosed, "..<"), \ + TOKEN_KIND(Token_Ellipsis, "..."), \ + TOKEN_KIND(Token_HalfClosed, ".."), \ TOKEN_KIND(Token_BackSlash, "\\"), \ TOKEN_KIND(Token__OperatorEnd, "_OperatorEnd"), \ \ @@ -885,10 +885,10 @@ Token tokenizer_get_token(Tokenizer *t) { token.kind = Token_Period; // Default if (t->curr_rune == '.') { // Could be an ellipsis advance_to_next_rune(t); - token.kind = Token_Ellipsis; - if (t->curr_rune == '<') { + token.kind = Token_HalfClosed; + if (t->curr_rune == '.') { advance_to_next_rune(t); - token.kind = Token_HalfClosed; + token.kind = Token_Ellipsis; } } break; |