fix(core:{odin,c}/tokenizer): Don't error on valid \uE000 codepoint

This commit is contained in:
IllusionMan1212
2024-10-13 00:01:41 +02:00
parent ed29c881a5
commit d52e0a892c
2 changed files with 2 additions and 2 deletions

View File

@@ -291,7 +291,7 @@ scan_escape :: proc(t: ^Tokenizer) -> bool {
n -= 1
}
if x > max || 0xd800 <= x && x <= 0xe000 {
if x > max || 0xd800 <= x && x <= 0xdfff {
error_offset(t, offset, "escape sequence is an invalid Unicode code point")
return false
}

View File

@@ -331,7 +331,7 @@ scan_escape :: proc(t: ^Tokenizer) -> bool {
n -= 1
}
if x > max || 0xd800 <= x && x <= 0xe000 {
if x > max || 0xd800 <= x && x <= 0xdfff {
error(t, offset, "escape sequence is an invalid Unicode code point")
return false
}