Skip to content

Commit

Permalink
Fix line comments at the end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerBill committed Jan 5, 2017
1 parent 207b252 commit 4afb3f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set exe_name=odin.exe

:: Debug = 0, Release = 1
set release_mode=0
set release_mode=1

set compiler_flags= -nologo -Oi -TC -fp:fast -fp:except- -Gm- -MP -FC -GS- -EHsc- -GR-

Expand Down
2 changes: 1 addition & 1 deletion src/tokenizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4afb3f8

Please sign in to comment.