Fix line comments at the end of file
This commit is contained in:
1 parent
207b252f23
commit
4afb3f8fa4
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user