pike.git / src / lexer.h

version» Context lines:

pike.git/src/lexer.h:489:    {    /* NOTE: TWO_CHAR() will generate false positives with wide strings,    * but that doesn't matter, since ISWORD() will fix it.    */    switch(TWO_CHAR(INDEX_CHARP(buf, 0, SHIFT),    INDEX_CHARP(buf, 1, SHIFT)))    {    case TWO_CHAR('a','r'):    if(ISWORD("array")) return TOK_ARRAY_ID;    break; +  case TWO_CHAR('a','w'): +  if (ISWORD("await")) { +  if (Pike_compiler->compiler_pass == COMPILER_PASS_FIRST) { +  yywarning("await will soon be a reserved keyword."); +  } +  break; +  } +  break;    case TWO_CHAR('a','u'):    if(ISWORD("auto")) return TOK_AUTO_ID;    break;    case TWO_CHAR('b','r'):    if(ISWORD("break")) return TOK_BREAK;    break;    case TWO_CHAR('c','a'):    if(ISWORD("case")) return TOK_CASE;    if(ISWORD("catch")) return TOK_CATCH;    break;