From f8374baaad768014e3fc72a376c98520e017f259 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 10 Dec 2008 03:51:49 -0500 Subject: [PATCH] nexttoken() needs to report the ending newline when throwing away comments. --- mojoshader_assembler.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mojoshader_assembler.c b/mojoshader_assembler.c index 27d7f0cd..e2d8172c 100644 --- a/mojoshader_assembler.c +++ b/mojoshader_assembler.c @@ -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;