aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-01-05 22:35:32 +0000
committerGinger Bill <bill@gingerbill.org>2017-01-05 22:35:32 +0000
commit4afb3f8fa41f7176cc80b4f6ad159526e8492e5e (patch)
treead95ecf817d4483843cf0ed062a55fb32cdde6bb /src/tokenizer.c
parent207b252f2393735376d9e4b6ddc992808923bff8 (diff)
Fix line comments at the end of filev0.0.5b
Diffstat (limited to 'src/tokenizer.c')
-rw-r--r--src/tokenizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tokenizer.c b/src/tokenizer.c
index 715c759db..c5037aaa7 100644
--- a/src/tokenizer.c
+++ b/src/tokenizer.c
@@ -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;