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

Diff of /trunk/highlight.c

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

revision 213 by siliconforks, Fri Oct 3 02:25:47 2008 UTC revision 330 by siliconforks, Wed Oct 22 23:48:48 2008 UTC
# Line 115  Line 115 
115    case '>':    case '>':
116      Stream_write_string(g_output, ">");      Stream_write_string(g_output, ">");
117      break;      break;
118      case '\t':
119    case '\n':    case '\n':
120      Stream_write_char(g_output, c);      Stream_write_char(g_output, c);
121      break;      break;
122    default:    default:
123      if (c == '\t' || (32 <= c && c <= 126)) {      if (32 <= c && c <= 126) {
124        Stream_write_char(g_output, c);        Stream_write_char(g_output, c);
125      }      }
126      else {      else {
# Line 334  Line 335 
335        break;        break;
336      case TOK_INC:      case TOK_INC:
337      case TOK_DEC:      case TOK_DEC:
338          class = CLASS_SYMBOL;
339          /* token_stream->flags does not change w.r.t. TSF_OPERAND */
340          break;
341      case TOK_DOT:      case TOK_DOT:
342      case TOK_LB:      case TOK_LB:
343        class = CLASS_SYMBOL;        class = CLASS_SYMBOL;
# Line 459  Line 463 
463        break;        break;
464      }      }
465    
466      assert(t.pos.begin.lineno == t.pos.end.lineno);      if (t.pos.begin.lineno != t.pos.end.lineno) {
467          fatal("%s: line %u: token spans multiple lines", id, t.pos.begin.lineno);
468        }
469      if (t.pos.begin.index > t.pos.end.index) {      if (t.pos.begin.index > t.pos.end.index) {
470        fatal("%s: script contains line with more than 65,535 characters", id);        fatal("%s: script contains line with more than 65,535 characters", id);
471      }      }

Legend:
Removed from v.213  
changed lines
  Added in v.330

  ViewVC Help
Powered by ViewVC 1.1.24