pub fn is_punct_char(ch: char) -> boolExpand description
Checks whether a given character should count as punctuation
used to determine word boundaries, made to match the implementation of
isPunctChar from the JS library.
This is currently implemented as a match, but might be simplified as a
regex if benchmarking shows this to be beneficient.