Branch: Tag:

2001-11-09

2001-11-09 01:33:12 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

Changes from Hubbe
now handles '\x' better

Rev: lib/modules/Parser.pmod/C.pmod:1.26
Rev: lib/modules/Parser.pmod/Pike.pmod:1.13

3:   inherit "C.pmod";      #define UNKNOWN_TOKEN \ -  throw( ({sprintf("Unknown token %O\n",data[pos..pos+20]) }) ) +  throw( ({sprintf("Unknown pike token: %O\n",data[pos..pos+20]) }) )      static mapping(string : int) backquoteops =   (["/":1,
210:       case '\'':    pos++; -  if(data[pos]=='\\') pos++; -  if(data[pos..pos+1]=="''") pos++; +  if(data[pos]=='\\') pos+=2;    int end=search(data, "'", pos)+1;    if (!end) {    --pos;