diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-10-19 18:12:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-19 18:12:08 +0100 |
| commit | b6cbdf7c545a3a4ec96cc0c94b2b9acfa51a0d99 (patch) | |
| tree | 0e38de6f9bffc8ec907a71ce4fa04483d60df496 | |
| parent | e79f94ca5e63971e2566422cd8905e1e7beca2c1 (diff) | |
| parent | d52e0a892ca75407cd3547311c07454d0aedd6be (diff) | |
Merge pull request #4370 from IllusionMan1212/allow-e000-codepoint
fix(core:{odin,c}/tokenizer): Don't error on valid \uE000 codepoint
| -rw-r--r-- | core/c/frontend/tokenizer/tokenizer.odin | 2 | ||||
| -rw-r--r-- | core/odin/tokenizer/tokenizer.odin | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/c/frontend/tokenizer/tokenizer.odin b/core/c/frontend/tokenizer/tokenizer.odin index 2415e06a0..558077717 100644 --- a/core/c/frontend/tokenizer/tokenizer.odin +++ b/core/c/frontend/tokenizer/tokenizer.odin @@ -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 } diff --git a/core/odin/tokenizer/tokenizer.odin b/core/odin/tokenizer/tokenizer.odin index c3a30581c..d4da82c56 100644 --- a/core/odin/tokenizer/tokenizer.odin +++ b/core/odin/tokenizer/tokenizer.odin @@ -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 } |