mojoshader_assembler.c
changeset 479 f7beff48de5e
parent 478 af4bfa5d615c
child 480 e7a7822fb38b
equal deleted inserted replaced
478:af4bfa5d615c 479:f7beff48de5e
   358         else if ((strcmp(ctx->token, "//") == 0) || (strcmp(ctx->token, ";") == 0))
   358         else if ((strcmp(ctx->token, "//") == 0) || (strcmp(ctx->token, ";") == 0))
   359         {
   359         {
   360             while ((rc = tokenize(ctx)) == NOFAIL)
   360             while ((rc = tokenize(ctx)) == NOFAIL)
   361             {
   361             {
   362                 if (strcmp(ctx->token, "\n") == 0)
   362                 if (strcmp(ctx->token, "\n") == 0)
       
   363                 {
       
   364                     pushback(ctx);
   363                     break;
   365                     break;
       
   366                 } // if
   364             } // while
   367             } // while
       
   368             continue;  // pick up from newline, go again.
   365         } // if
   369         } // if
   366 
   370 
   367         break;
   371         break;
   368     } // while
   372     } // while
   369 
   373