mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-01 03:38:55 +00:00
Fix duplicated entries within unicode_spaces and space_ranges
Somewhere on the creation of these tables, the `0x3000-0x3000` range seemingly slipped in an additional time. Since binary search is done on both `unicode_spaces` and `space_ranges`, i doubt this is intentional behavior, as this unsorts the tables.
This commit is contained in:
committed by
GitHub
parent
e1691f9fac
commit
785d02f0cf
@@ -474,7 +474,7 @@ space_ranges := [?]i32{
|
||||
0x1680, 0x1680, // Ogham space mark
|
||||
0x2000, 0x200b, // en dash .. zero-width space
|
||||
0x200e, 0x200f, // LTR mark .. RTL mark (pattern whitespace)
|
||||
0x2028, 0x2029, 0x3000, 0x3000,
|
||||
0x2028, 0x2029, // paragraph and line seperators
|
||||
0x202f, 0x202f, // narrow no-break space
|
||||
0x205f, 0x205f, // medium mathematical space
|
||||
0x3000, 0x3000, // ideographic space
|
||||
@@ -492,7 +492,7 @@ unicode_spaces := [?]i32{
|
||||
0x1680, // Ogham space mark
|
||||
0x2000, // en dash .. zero-width space
|
||||
0x200e, 0x200f, // LTR mark .. RTL mark (pattern whitespace)
|
||||
0x2028, 0x2029, 0x3000, 0x3000,
|
||||
0x2028, 0x2029, // paragraph and line seperators
|
||||
0x202f, // narrow no-break space
|
||||
0x205f, // medium mathematical space
|
||||
0x3000, // ideographic space
|
||||
|
||||
Reference in New Issue
Block a user