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