Skip to content

Commit

Permalink
nexttoken() needs to report the ending newline when throwing away com…
Browse files Browse the repository at this point in the history
…ments.
  • Loading branch information
icculus committed Dec 10, 2008
1 parent 4644dae commit f8374ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojoshader_assembler.c
Expand Up @@ -360,8 +360,12 @@ static int nexttoken(Context *ctx, const int ignoreeol,
while ((rc = tokenize(ctx)) == NOFAIL)
{
if (strcmp(ctx->token, "\n") == 0)
{
pushback(ctx);
break;
} // if
} // while
continue; // pick up from newline, go again.
} // if

break;
Expand Down

0 comments on commit f8374ba

Please sign in to comment.