fix: Do not consider underscores and middle dash hard
@@ -39,8 +39,8 @@ fn is_separator(c: char) -> bool {
fn classify_separator(c: char) -> Option<SeparatorCategory> {
match c {
- ' ' | '\'' | ':' | '"' => Some(Soft),
- '.' | ';' | ',' | '!' | '?' | '-' | '_' | '(' | ')' => Some(Hard),
+ ' ' | '-' | '_' | '\'' | ':' | '"' => Some(Soft),
+ '.' | ';' | ',' | '!' | '?' | '(' | ')' => Some(Hard),
_ => None,
}
}
