Branch: Tag:

2015-08-23

2015-08-23 18:20:47 by Martin Nilsson <nilsson@fastmail.com>

Support #[#] style string quoting in Pike tokenizer.

230:    goto failed_to_find_end;    break;    } +  { +  char end = 0; +  if( (data[pos] == '(' && (end=')')) || +  (data[pos] == '[' && (end=']')) || +  (data[pos] == '{' && (end='}')) ) +  { +  for (pos++; pos<len-1; pos++) +  if (data[pos] == '#' && data[pos+1] == end) +  { +  pos++; +  end=0; +  break; +  } +  if (end) +  goto failed_to_find_end; +  break; +  } +  }    if( data[pos] == 's' &&    data[pos+1] == 't' &&    data[pos+2] == 'r' &&