Fix line comments at the end of file

This commit is contained in:
Ginger Bill committed 2017-01-05 22:35:32 +00:00
1 parent 207b252f23
commit 4afb3f8fa4
2 files changed
+2 -2

No files matched your search

+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;