accepted 0.2.0

A text editor to be ACCEPTED.
Documentation
1
2
3
4
5
6
7
8
pub fn next_indent_level(line: &str, indent_width: usize) -> usize {
    let base = line.chars().take_while(|&c| c == ' ').count() / indent_width;
    if ['{', '[', '('].iter().any(|&c| line.ends_with(c)) {
        base + 1
    } else {
        base
    }
}