pub fn classify_pattern_ext(s: &str) -> PatternTagExt
Classify a pattern string by its leading token.