fn boundary_ok( term_kind: TermKind, neighbor: Option<char>, term_has_other_boundary: bool, ) -> bool