Fix line comments at the end of file

This commit is contained in:
Ginger Bill
2017-01-05 22:35:32 +00:00
parent 207b252f23
commit 4afb3f8fa4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -899,7 +899,7 @@ Token tokenizer_get_token(Tokenizer *t) {
break;
case '/': {
if (t->curr_rune == '/') {
while (t->curr_rune != '\n') {
while (t->curr_rune != '\n' && t->curr_rune != GB_RUNE_EOF) {
advance_to_next_rune(t);
}
token.kind = Token_Comment;