diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-28 20:16:18 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-28 20:16:18 +0000 |
| commit | e86c990b75bb30f0116430453b42a59317e3fead (patch) | |
| tree | 2645005099bd2cf744299d6a3538408ed5728d39 /src/tokenizer.c | |
| parent | 31aacd5bf435224c7d8f9b19359175d3e6d25660 (diff) | |
Overloaded `free`; 3 dotted ellipsisv0.0.6a
Diffstat (limited to 'src/tokenizer.c')
| -rw-r--r-- | src/tokenizer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tokenizer.c b/src/tokenizer.c index 8fa836941..800107466 100644 --- a/src/tokenizer.c +++ b/src/tokenizer.c @@ -75,7 +75,7 @@ TOKEN_KIND(Token__ComparisonEnd, "_ComparisonEnd"), \ TOKEN_KIND(Token_Semicolon, ";"), \ TOKEN_KIND(Token_Period, "."), \ TOKEN_KIND(Token_Comma, ","), \ - TOKEN_KIND(Token_Ellipsis, ".."), \ + TOKEN_KIND(Token_Ellipsis, "..."), \ TOKEN_KIND(Token_HalfOpenRange, "..<"), \ TOKEN_KIND(Token__OperatorEnd, "_OperatorEnd"), \ \ @@ -847,10 +847,12 @@ 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 == '<') { advance_to_next_rune(t); token.kind = Token_HalfOpenRange; + } else if (t->curr_rune == '.') { + advance_to_next_rune(t); + token.kind = Token_Ellipsis; } } break; |