diff options
| author | gingerBill <bill+github@gingerbill.org> | 2016-08-12 17:21:34 +0100 |
|---|---|---|
| committer | gingerBill <bill+github@gingerbill.org> | 2016-08-12 17:21:34 +0100 |
| commit | c10b46af9feb76a9839efa292c5288ec4684055e (patch) | |
| tree | 47ed229ba31638767264a781121a343323ddfb00 /src/tokenizer.cpp | |
| parent | 84f2bcd885296433a4ccf2188639b377293306e4 (diff) | |
Compound Literals - struct, array, slice, vector
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 79a4ed755..6f319959c 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -95,7 +95,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__OperatorEnd, "_OperatorEnd"), \ \ TOKEN_KIND(Token__KeywordBegin, "_KeywordBegin"), \ @@ -741,10 +741,7 @@ Token tokenizer_get_token(Tokenizer *t) { token = scan_number_to_token(t, true); } else if (t->curr_rune == '.') { // Could be an ellipsis advance_to_next_rune(t); - if (t->curr_rune == '.') { - advance_to_next_rune(t); - token.kind = Token_Ellipsis; - } + token.kind = Token_Ellipsis; } break; |