def word.special

emerging-ezjson@1.3.0.0 · src/pull.bend:617

import emerging-ezjson@1.3.0.0/src/pull.bend as Pull
import Base

617# a code point that ends a bare word: the same bytes `classify` calls
618# punctuation, a quote, a backslash, or whitespace. A form feed stays in the word
619def word.special(+cp: U32) -> Bool:
620  Bool.or(U32.is_eq(cp, 9),
621    Bool.or(U32.is_eq(cp, 10),
622      Bool.or(U32.is_eq(cp, 13),
623        Bool.or(U32.is_eq(cp, 32),
624          Bool.or(U32.is_eq(cp, 34),
625            Bool.or(U32.is_eq(cp, 44),
626              Bool.or(U32.is_eq(cp, 58),
627                Bool.or(U32.is_eq(cp, 91),
628                  Bool.or(U32.is_eq(cp, 92),
629                    Bool.or(U32.is_eq(cp, 93),
630                      Bool.or(U32.is_eq(cp, 123), U32.is_eq(cp, 125))))))))))))

Uses (4)

Used by (1)