Add some extra functionality to tests.
@@ -306,11 +306,17 @@ static int string_state(GstParser *p, uint8_t c) {
case '"': next = '"'; break;
case '\'': next = '\''; break;
case 'z': next = '\0'; break;
+ case 'e': next = 27; break;
case 'h':
top->buf.string.state = STRING_STATE_ESCAPE_HEX;
top->buf.string.count = 0;
top->buf.string.accum = 0;
return 1;
+ case 'u':
+ top->buf.string.state = STRING_STATE_ESCAPE_HEX;
+ top->buf.string.count = 0;
+ top->buf.string.accum = 0;
+ return 1;
default:
p_error(p, "unknown string escape sequence");
return 1;
