on master help sign in
Add unreachable context
6254720Ivan Tham
helix-core/src/movement.rs+1−1
@@ -199,7 +199,7 @@ fn categorize(ch: char) -> Category {
199 } else if ch.is_ascii_punctuation() {
199 } else if ch.is_ascii_punctuation() {
200 Category::Punctuation
200 Category::Punctuation
201 } else {
201 } else {
202− unreachable!()
202+ unreachable!("unknown '{}' character category", ch)
203 }
203 }
204}
204}
205
205