/[jscoverage]/trunk/highlight.cpp
ViewVC logotype

Diff of /trunk/highlight.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 473 by siliconforks, Sun Oct 4 04:48:09 2009 UTC revision 477 by siliconforks, Thu Oct 8 20:08:39 2009 UTC
# Line 294  Line 294 
294          token_stream.flags |= TSF_OPERAND;          token_stream.flags |= TSF_OPERAND;
295          break;          break;
296        default:        default:
297          abort();          fatal_source(id, t.pos.begin.lineno, "unknown TOK_UNARYOP (%d)", t.t_op);
298            break;
299        }        }
300        break;        break;
301      case TOK_INC:      case TOK_INC:
# Line 357  Line 358 
358          token_stream.flags &= ~TSF_OPERAND;          token_stream.flags &= ~TSF_OPERAND;
359          break;          break;
360        default:        default:
361          abort();          fatal_source(id, t.pos.begin.lineno, "unknown TOK_PRIMARY (%d)", t.t_op);
362            break;
363        }        }
364        break;        break;
365      case TOK_FUNCTION:      case TOK_FUNCTION:
# Line 385  Line 387 
387        break;        break;
388      case TOK_DEFSHARP:      case TOK_DEFSHARP:
389      case TOK_USESHARP:      case TOK_USESHARP:
390        abort();        fatal_source(id, t.pos.begin.lineno, "unknown token (%d)", tt);
391        break;        break;
392      case TOK_TRY:      case TOK_TRY:
393      case TOK_CATCH:      case TOK_CATCH:
# Line 414  Line 416 
416      case TOK_FILTER:      case TOK_FILTER:
417      case TOK_XMLELEM:      case TOK_XMLELEM:
418      case TOK_XMLLIST:      case TOK_XMLLIST:
419        abort();        fatal_source(id, t.pos.begin.lineno, "unknown token (%d)", tt);
420        break;        break;
421      case TOK_YIELD:      case TOK_YIELD:
422        token_stream.flags |= TSF_OPERAND;        token_stream.flags |= TSF_OPERAND;
# Line 423  Line 425 
425      case TOK_ARRAYCOMP:      case TOK_ARRAYCOMP:
426      case TOK_ARRAYPUSH:      case TOK_ARRAYPUSH:
427      case TOK_LEXICALSCOPE:      case TOK_LEXICALSCOPE:
428        abort();        fatal_source(id, t.pos.begin.lineno, "unknown token (%d)", tt);
429        break;        break;
430      case TOK_LET:      case TOK_LET:
431        token_stream.flags |= TSF_OPERAND;        token_stream.flags |= TSF_OPERAND;
# Line 433  Line 435 
435      case TOK_FORHEAD:      case TOK_FORHEAD:
436      case TOK_RESERVED:      case TOK_RESERVED:
437      case TOK_LIMIT:      case TOK_LIMIT:
438        abort();        fatal_source(id, t.pos.begin.lineno, "unknown token (%d)", tt);
439        break;        break;
440      default:      default:
441        abort();        fatal_source(id, t.pos.begin.lineno, "unknown token (%d)", tt);
442        break;        break;
443      }      }
444    

Legend:
Removed from v.473  
changed lines
  Added in v.477

  ViewVC Help
Powered by ViewVC 1.1.24