strop-grammar 0.9.2

strop grammar: pure vim operator-pending resolver (motions, text objects, counts)
Documentation
1
2
3
4
5
6
7
8
9
10
#[test]
fn dbg_right_resolve() {
    let buf = strop_core::Buffer::from_text("café münchen\n");
    let cmd = match strop_grammar::parse("l") { strop_grammar::Parse::Complete(c) => c, _ => panic!() };
    let mut cur = 3;
    let r = strop_grammar::resolve(&buf, cur, &cmd).unwrap();
    eprintln!("range {:?} inclusive {}", r.range, r.inclusive);
    let after = strop_grammar::cursor_after(&buf, cur, &cmd, &r);
    eprintln!("cursor_after from {} = {}", cur, after);
}