mojoshader_lexer.re
changeset 690 4710df464f13
parent 679 3892ebde7d99
child 697 765a85a989a2
equal deleted inserted replaced
689:5872092cbf95 690:4710df464f13
   146     "<"             { RET('<'); }
   146     "<"             { RET('<'); }
   147     ">"             { RET('>'); }
   147     ">"             { RET('>'); }
   148     "^"             { RET('^'); }
   148     "^"             { RET('^'); }
   149     "|"             { RET('|'); }
   149     "|"             { RET('|'); }
   150     ":"             { RET(':'); }
   150     ":"             { RET(':'); }
   151     ";"             { RET(';'); }
       
   152     "{"             { RET('{'); }
   151     "{"             { RET('{'); }
   153     "}"             { RET('}'); }
   152     "}"             { RET('}'); }
   154     "="             { RET('='); }
   153     "="             { RET('='); }
   155     "?"             { RET('?'); }
   154     "?"             { RET('?'); }
       
   155 
       
   156     ";"             { if (s->asm_comments) goto singlelinecomment; RET(';'); }
   156 
   157 
   157     "\000"          { if (eoi) { RET(TOKEN_EOI); } goto bad_chars; }
   158     "\000"          { if (eoi) { RET(TOKEN_EOI); } goto bad_chars; }
   158 
   159 
   159     WHITESPACE      { if (s->report_whitespace) RET(' '); goto scanner_loop; }
   160     WHITESPACE      { if (s->report_whitespace) RET(' '); goto scanner_loop; }
   160     NEWLINE         { s->line++; RET('\n'); }
   161     NEWLINE         { s->line++; RET('\n'); }