Throw on broken escape sequences

This commit is contained in:
0x4261756D 2024-02-21 17:43:53 +01:00
parent e3968034ce
commit ef333f7d93

View File

@ -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}");
}
}