Throw on broken escape sequences
This commit is contained in:
parent
e3968034ce
commit
ef333f7d93
@ -493,13 +493,13 @@ class Tokenizer
|
|||||||
case 'x':
|
case 'x':
|
||||||
{
|
{
|
||||||
state = State.QuoteBackslashX;
|
state = State.QuoteBackslashX;
|
||||||
|
throw new NotImplementedException($"\\u escape sequences are broken right now");
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
case 'u':
|
case 'u':
|
||||||
{
|
{
|
||||||
state = State.QuoteBackslashU;
|
state = State.QuoteBackslashU;
|
||||||
|
throw new NotImplementedException($"\\u escape sequences are broken right now");
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
default: throw new Exception($"Unknown escape sequence: \\{ch} at {currentLocation}");
|
default: throw new Exception($"Unknown escape sequence: \\{ch} at {currentLocation}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user