mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-06 06:38:20 +00:00
is_punct now searches generated tables
This commit is contained in:
committed by
Jeroen van Rijn
parent
3bfa01d4a8
commit
8f5f1ee1cc
@@ -242,7 +242,16 @@ is_punct :: proc(r: rune) -> bool #no_bounds_check {
|
||||
if u32(r) <= MAX_LATIN1 {
|
||||
return char_properties[u8(r)]&pP != 0
|
||||
}
|
||||
return false
|
||||
|
||||
if in_range(r, pc_ranges) || in_range(r, pd_ranges) || in_range(r, pe_ranges) {
|
||||
return true
|
||||
}
|
||||
|
||||
if in_range(r, pf_ranges) || in_range(r, pi_ranges) || in_range(r, po_ranges) {
|
||||
return true
|
||||
}
|
||||
|
||||
return in_range(r, ps_ranges)
|
||||
}
|
||||
|
||||
@(require_results)
|
||||
|
||||
Reference in New Issue
Block a user